POST
/
account-updater
/
jobs
curl --request POST \
  --url https://api.{id}.gr4vy.app/account-updater/jobs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payment_method_ids": [
    "ef9496d8-53a5-4aad-8ca2-00eb68334389",
    "f29e886e-93cc-4714-b4a3-12b7a718e595"
  ]
}'
{
  "type": "account-updater-job",
  "id": "cc18c7c6-c1d4-4194-92a7-d5a985108b68",
  "merchant_account_id": "default",
  "inquiries": [
    {
      "type": "account-updater-inquiry",
      "id": "aadb3ea8-5ad6-408b-8c3d-82da77c8d619",
      "payment_method_id": "ef9496d8-53a5-4aad-8ca2-00eb68334389"
    }
  ],
  "created_at": "2013-07-16T19:23:00.000+00:00",
  "updated_at": "2013-07-16T19:23:00.000+00:00"
}

Authorizations

Authorization
string
header
required

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

Headers

x-gr4vy-merchant-account-id
string | null

The ID of the merchant account to use for this request.

Examples:

"default"

Query Parameters

timeout_in_seconds
number
default:1

Body

application/json

Response

201
application/json
A scheduled account updater job when one or more payment methods were scheduled for update.

The response is of type object.