Store credit callout
Store credits are a flexible payment option that allows customers to apply a designated credit balance toward their purchases. Store credits can enhance customer satisfaction and streamline payment when integrated into the Digital River checkout flow. Configuring a store credit callout in the Prebuilt Checkout page ensures that each credit application is verified through a saved endpoint, maintaining transaction integrity and seamlessly validating credit amounts.
Store credit callout
The identifier of the checkout session associated with the store credit request.
7765374748
The upstream identifier of the checkout session associated with the store credit request.
8234373746
The store credit amount.
5
The store credit name.
Gift card
The upstream store credit identifier.
7654-2345-0987-123456
The store credit image url.
https://test.com/logo.png
The last four digits of the store credit.
7831
POST /checkouts/store-credits HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 182
{
"sessionId": "7765374748",
"sessionUpstreamId": "8234373746",
"amount": 5,
"name": "Gift card",
"upstreamId": "7654-2345-0987-123456",
"iconUrl": "https://test.com/logo.png",
"lastFour": "7831"
}
{
"amount": 5,
"upstreamId": "7654-2345-0987-123456",
"approval": true
}
Store credit callout
The unique identifier of the store credit
DELETE /checkouts/store-credits/{upstreamId} HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated