Get payment by ID

get

/ccstore/v1/orders/current/payments/{id}

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 payment details retained on the cart (current incomplete order) for the given payment group ID.

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
Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

The model being returned when the GET operation succeeds. It contains the details of the shipping group in the current order for the given shipping group ID.
Body ()
Root Schema : getPayment_response
Type: object
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)
{
    "paymentGroupId":"pg230440",
    "amount":27.4,
    "customPaymentProperties":{
    },
    "balance":"27.4",
    "gatewayName":"demoGenericGiftCardGateway",
    "giftCardNumber":"6035718888920014103",
    "paymentMethod":"physicalGiftCard",
    "isAmountRemaining":false,
    "links":[
        {
            "method":"DELETE",
            "rel":"/rels/deletePayment",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments/pg230440"
        },
        {
            "method":"GET",
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments/pg230440"
        },
        {
            "method":"GET",
            "rel":"canonical",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments/pg230440"
        },
        {
            "method":"PATCH",
            "rel":"/rels/updatePayment",
            "href":"http://localhost:8080/ccstoreui/v1/orders/current/payments/pg230440"
        }
    ],
    "paymentState":"INITIAL",
    "maskedCardNumber":"xxxxxxxxxxxxxxx4103"
}

400 Response

The error response (which alternates to the default response depending on error reason).
Body ()
Root Schema : errorModelSingleError
Type: object
Show Source

Default Response

The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
Error CodeDescriptionPossible Fix
29008The payment was not found in the current order (cart)Verify you have entered a valid payment ID.

The error response:
Body ()
Root Schema : errorModelMultiErrors
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