Common Types
Common API Types used within multiple API resources.
Representations
Amount
Money in cent amounts for a specific currency.
centAmountInt | Amount in the smallest indivisible unit of a currency, such as:
|
currencyCodeString | Currency code compliant to ISO 4217. Pattern:^[A-Z]{3}$ |
Region
The Region in which the Checkout application is hosted.
europe-west1.gcpfor Europe (Google Cloud, Belgium)
us-central1.gcpfor North America (Google Cloud, Iowa)
australia-southeast1.gcpfor Australia (Google Cloud, Sydney)
ReferenceTypeId
Type of resource the value should reference. Supported resource type identifiers are:
cartReferences a Cart.
orderReferences an Order.
paymentReferences a Payment.
applicationReferences an Application.
payment-integrationReferences a Payment Integration.
DateTime
A DateTime is a JSON string representation of UTC date & time in ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ), for example:
"2018-10-12T14:00:00.000Z"
Reference
A Reference represents a loose reference to another resource, and each resource type has its corresponding Reference type, like CartReference.
ApplicationReference
Reference to an Application.
idString | Unique identifier of the referenced Application. |
typeId | "application"References an Application. |
CartReference
OrderReference
PaymentReference
PaymentIntegrationReference
Reference to a Payment Integration.
idString | Unique identifier of the referenced Payment Integration. |
typeId | "payment-integration"References a Payment Integration. |
Resource Identifier
Draft type to create a Reference to a resource.
ApplicationResourceIdentifier
Resource identifier to an Application. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
idString | Unique identifier of the referenced Application. Required if |
typeId | "application"References an Application. |
keyString | User-defined unique identifier of the referenced Application. Required if |
CartResourceIdentifier
Resource identifier to a Cart. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
OrderResourceIdentifier
Resource identifier to an Order. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
PaymentResourceIdentifier
Resource identifier to a Payment. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
PaymentIntegrationResourceIdentifier
Resource identifier to a Payment Integration. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
idString | Unique identifier of the referenced Payment Integration. Required if |
typeId | "payment-integration"References a Payment Integration. |
keyString | User-defined unique identifier of the referenced Payment Integration. Required if |