using Gr4vy;
using Gr4vy.Models.Components;
using System.Collections.Generic;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.AccountUpdater.Jobs.CreateAsync(accountUpdaterJobCreate: new AccountUpdaterJobCreate() {
PaymentMethodIds = new List<string>() {
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
"f29e886e-93cc-4714-b4a3-12b7a718e595",
},
});
// handle response{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"inquiries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "account-updater-inquiry"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"type": "account-updater-job"
}Schedule one or more stored cards for an account update.
using Gr4vy;
using Gr4vy.Models.Components;
using System.Collections.Generic;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.AccountUpdater.Jobs.CreateAsync(accountUpdaterJobCreate: new AccountUpdaterJobCreate() {
PaymentMethodIds = new List<string>() {
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
"f29e886e-93cc-4714-b4a3-12b7a718e595",
},
});
// handle response{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"inquiries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "account-updater-inquiry"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"type": "account-updater-job"
}payment-methods.write scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
A list of payment method IDs to request an update for.
1 - 100 elements[
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
"f29e886e-93cc-4714-b4a3-12b7a718e595"
]A scheduled account updater job when one or more payment methods were scheduled for update.
The ID for the account updater job.
"cc18c7c6-c1d4-4194-92a7-d5a985108b68"
The ID of the merchant account this job belongs to.
"default"
A list of the payment methods that have been scheduled for an update.
Show child attributes
The date and time when this payment method was first created in our system.
"2013-07-16T19:23:00.000+00:00"
The date and time when this payment method was last updated in our system.
"2013-07-16T19:23:00.000+00:00"
Always account-updater-job
"account-updater-job""account-updater-job"