Required scopes
Required scopes
Create a manual payment
To create a manual payment record, make aPOST request to /commerce/payments/2027-03-beta/manual-payments.
In the request body, you’ll need to include currencyCode, paymentAmount, paymentDate, and paymentMethod at a minimum.
When the request is successful, the response returns the
id of the newly created payment record.
Associations
To associate the payment with other CRM records on creation, you can include theassociations array in the create request body to define each association.
Supported associations for payments include:
Retry a failed payment
The retry endpoint uses an asynchronous pattern: you initiate the retry with aPOST request, which returns a task ID, then poll a separate status endpoint to check the result.
Initiate a retry
To initiate a retry, make aPOST request to /commerce/payments/2027-03-beta/{paymentCrmObjectId}/actions/retry/async, where {paymentCrmObjectId} is the ID of the payment CRM object you want to retry.
A successful request returns a 202 response containing a TaskLocator object with the id of the retry task.
Check retry status
To check the status of a retry, make aGET request to /commerce/payments/2027-03-beta/{paymentCrmObjectId}/actions/retry/async/tasks/{taskId}/status, using the taskId value returned from the initiate request.
The response includes a status field with one of the following values:
The response also includes
startedAt, completedAt, and, if any errors occurred, an errors array and numErrors count.