Skip to main content
POST
/
account-updater
/
jobs
Create Account Updater job
using RestSharp;


var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/account-updater/jobs");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n  \"payment_method_ids\": [\n    \"497f6eca-6276-4993-bfeb-53cbbbba6f08\"\n  ]\n}", false);
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);
{
  "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
header
required

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

Body

application/json

A request to create an Account Updater job.

payment_method_ids
string<uuid>[]
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.

Required array length: 1 - 100 elements
Example:
["497f6eca-6276-4993-bfeb-53cbbbba6f08"]

Response

Returns the created Account Updater job.

An Account Updater job.

type
enum<string>

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

Available options:
account-updater-job
Example:

"account-updater-job"

id
string<uuid>

The unique identifier for this Account Updater job.

Example:

"fe26475d-ec3e-4884-9553-f7356683f7f9"

merchant_account_id
string

The unique ID for a merchant account.

Example:

"default"

created_at
string<date-time>

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

Example:

"2023-07-26T19:23:00.000+00:00"

updated_at
string<date-time>

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

Example:

"2023-07-26T19:23:00.000+00:00"

inquiries
Account Updater Inquiry Summary · object[]

A list of inquiries associated with this Account Updater job.