Retrieve all payments

get

/ccstore/v1/orders/current/payments

This API is used by the CX Commerce OSF Storefront. This API is currently not used by CX Commerce Classic Storefront but may be used in the future. It may be used in applications outside of CX Commerce Storefront.

Get all the payments from the cart. This operation will fetch all the payments retained on the current order.

This endpoint is part of a group of APIs used in conjunction with each other to perform granular actions on the cart (current incomplete order).

Request

Supported Media Types
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : getPayments_response
Type: object
Show Source
Nested Schema : items
Type: array
The details of all the payments in the current order.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : customProperties
Type: object
Custom object with dynamic properties. This will be passed to the webhook request
Example Response (application/json)
{
    "totalResults":"2",
    "offset":"0",
    "hasMore":"false",
    "limit":"250",
    "links":[
        {
            "method":"PATCH",
            "rel":"/rels/updatePayments",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments"
        },
        {
            "method":"GET",
            "rel":"last",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments?offset=0&limit=2"
        },
        {
            "method":"POST",
            "rel":"/rels/addPayments",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments/add"
        },
        {
            "method":"GET",
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments"
        },
        {
            "method":"GET",
            "rel":"canonical",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments"
        },
        {
            "method":"GET",
            "rel":"first",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments?offset=0&limit=250"
        }
    ],
    "items":[
        {
            "paymentGroupId":"pg230431",
            "amount":9.11,
            "customPaymentProperties":{
            },
            "balance":"9.11",
            "gatewayName":"demoGenericGiftCardGateway",
            "giftCardNumber":"6035718888920014103",
            "paymentMethod":"physicalGiftCard",
            "isAmountRemaining":false,
            "paymentState":"INITIAL",
            "maskedCardNumber":"xxxxxxxxxxxxxxx4103"
        },
        {
            "paymentGroupId":"pg230433",
            "amount":5.88,
            "customPaymentProperties":{
            },
            "balance":"28.61",
            "gatewayName":"demoGenericGiftCardGateway",
            "giftCardNumber":"987655432",
            "paymentMethod":"physicalGiftCard",
            "isAmountRemaining":true,
            "paymentState":"INITIAL",
            "maskedCardNumber":"xxxxx5432"
        }
    ]
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top