POST
/
account-updater
/
jobs
curl --request POST \
  --url https://api.{gr4vy_id}.gr4vy.app/account-updater/jobs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payment_method_ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}'
{
  "type": "account-updater-job",
  "id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
  "merchant_account_id": "default",
  "created_at": "2023-07-26T19:23:00.000+00:00",
  "updated_at": "2023-07-26T19:23:00.000+00:00",
  "inquiries": [
    {
      "type": "account-updater-inquiry",
      "id": "d038f8bf-f1fd-45b3-9948-e1fbb58e8d62",
      "payment_method_id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    }
  ]
}

This endpoint requires the payment-methods.write scope.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
payment_method_ids
string[]
required

A list of unique payment method identifiers used to create the Account Updater job. A payment method will be considered only if it qualifies for an inquiry.

Response

201 - application/json
type
enum<string>

The type of this resource. Is always account-updater-job.

Available options:
account-updater-job
id
string

The unique identifier for this Account Updater job.

merchant_account_id
string

The unique ID for a merchant account.

created_at
string

The date and time when this Account Updater job was created.

updated_at
string

The date and time when this Account Updater job was last updated.

inquiries
object[]

A list of inquiries associated with this Account Updater job.