Get payment order for guest customer

GET /V1/guest-carts/{cartId}/payment-order/{id}

Get payment order for guest customer

Path parameters

Responses

  • 200 Success.

    Hide response attributes Show response attributes object
  • Internal Server error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

GET /V1/guest-carts/{cartId}/payment-order/{id}
curl \
 -X GET https://magento2.winkelstraat.mac/rest/all/V1/guest-carts/{cartId}/payment-order/{id}
Response examples (200)
{
  "payment_source_details": {
    "card": {
      "name": "string",
      "last_digits": "string",
      "card_expiry_month": "string",
      "card_expiry_year": "string",
      "bin_details": {
        "bin": "string"
      }
    }
  },
  "id": "string",
  "mp_order_id": "string",
  "status": "string",
  "amount": 42.0,
  "currency_code": "string"
}
Response examples (500)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}