POST v1​/ carts​/:cart_id​/order​/:order_id​/place_paypal

Endpoint used to complete a PayPal transaction.

Request

Example Request

{
  "token": "EC-12345",
  "PayerID": "abcde"
}

Request Parameters

  • token

    The PayPal token.

    • Required: yes
    • Type: string
    • Example: "EC-12345"
  • PayerID

    The PayPal’s PayerID.

    • Required: yes
    • Type: string
    • Example: "abcde"

Response

Example Response

{
  "order_number": "ds123213ffew"
}

Response Parameters

  • order_number

    The order’s ID.

    • Required: yes
    • Type: string
    • Example: "ds123213ffew"

Response Codes

Successful Response Codes

Failure Response Codes