Objects
What's Object?
Below diagram shows objects created from Amazon Pay button click to checkout complete on website.
Diagram is horizontal, and flows from left to right. Scroll the diagram to the right to see all flow.
Merchant site | |||||
● ● ● Cart page | ● ● ● Order review page | ● ● ● Order confirmation page ✔️ | |||
Amazon Pay Hosted page | |||||
Merchant | |||||
Objects created during checkout | |||||
Session initiated Checkout Session (checkoutSessionId) | Order confirmation Charge Permission (chargePermissionId) Authorization/Settlement Charge (chargeId) |
Three objects appear in above diagram. You call Amazon Pay APIs against these object in subsequent processes to get shiping address and/or complete checkout etc.
- Checkout Session (Checkout Session represents a single active session (or engagement) for the buyer on your website)
- Charge Permission (Object created during checkout session completion)
- Charge (Object created when authorization is is initiated)
There are two additional objects appers in post-checkout or in different scenario.
- Refund (Object created when refund is performed)
- Buyer (Object that contains Amazon buyer information)
Object relationship
info
Relationship between objects for OneTime and Recurring checkout
- OneTime
- Recurring
Checkout Session
(checkoutSessionId)
(checkoutSessionId)
1 : 1
Charge Permission
(chargePermissionId)
(chargePermissionId)
Charge
(chargeId)
(chargeId)
Refund
(refundId)
(refundId)
・ Closed charge is not included in the count.
・ You can create up to 10 Refund against Charge, meaning you can make split refund up to 10 times.
Checkout Session
(checkoutSessionId)
(checkoutSessionId)
1 : 1
Charge Permission
(chargePermissionId)
(chargePermissionId)
Amount limit
Charge
(chargeId)
(chargeId)
Refund
(refundId)
(refundId)
・ You can create up to 25 "Open" state Charge against Charge Permission.
・ When Charge is Closed (such as cancelling authorization), such charge is not counted.
・ You can create up to 10 Refund against Charge, meaning you can make split refund up to 10 times.