Digital River API usage

Learn how to use the Digital River API to attach a payment method to the checkout or customer.

Attaching to a checkout

The following example shows how to attach a payment method to checkout.

POST /checkouts/{id}
POST /checkouts/{id}
{
"customerId": "5774321008",
"sourceId": "src_a78cfeae-f7ae-4719-8e1c-d05ec04e4d37"
}

Attaching to a customer

The following example shows how to attach a payment option to a customer.

POST /customers/{id}/sources/{sourcesId}
POST /customers/{id}/sources/{sourcesId}
{
"id": "5774321008",
"sourceId": "src_a78cfeae-f7ae-4719-8e1c-d05ec04e4d37"
}