Common API Types used within multiple API resources.
References
Reference
id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ApplicationReference.idString | Unique ID of the referenced resource. |
typeId | Type of referenced resource. |
{
"typeId": "application",
"id": "d1229e6f-2b79-441e-b419-180311e52754"
}ResourceIdentifier
id or (wherever supported) the key of the resource to reference, but depending on the API endpoint the response returns a Reference.idString | Unique identifier of the referenced resource. Required if key is absent. |
typeId | Type of referenced resource. If given, it must match the expected ReferenceTypeId of the referenced resource. |
keyString | User-defined unique identifier of the referenced resource. Required if id is absent. |
ReferenceTypeId
Type of resource the value should reference. Supported resource type identifiers are:
cart- References a Cart.
order- References an Order.
payment- References a Payment.
application- References an Application.
payment-integration- References a Payment Integration.
deployment- References a Connector Deployment.
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
europe-west1.gcpfor Europe (Google Cloud, Belgium)
us-central1.gcpfor North America (Google Cloud, Iowa)
australia-southeast1.gcpfor Australia (Google Cloud, Sydney)
DateTime
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"
CartReference
OrderReference
PaymentReference
CartResourceIdentifier
id or key is required. If both are set, an InvalidJsonInput error is returned.idString | Unique identifier of the referenced Cart. Required if key is absent. |
typeId | cartType of referenced resource. If given, it must match the expected ReferenceTypeId of the referenced resource. |
keyString | User-defined unique identifier of the referenced Cart. Required if id is absent. |
OrderResourceIdentifier
id or key is required. If both are set, an InvalidJsonInput error is returned.idString | Unique identifier of the referenced Order. Required if key is absent. |
typeId | orderType of referenced resource. If given, it must match the expected ReferenceTypeId of the referenced resource. |
keyString | User-defined unique identifier of the referenced Order. Required if id is absent. |
PaymentResourceIdentifier
id or key is required. If both are set, an InvalidJsonInput error is returned.idString | Unique identifier of the referenced Payment. Required if key is absent. |
typeId | paymentType of referenced resource. If given, it must match the expected ReferenceTypeId of the referenced resource. |
keyString | User-defined unique identifier of the referenced Payment. Required if id is absent. |
Localization
CountryCode
CurrencyCode
Locale
en, en-US, zh-Hans-SG.LocalizedString
/^[a-z]{2}(-[A-Z]{2})?$/Any string parameter matching this regular expression | String used for the specified language. |
{
"de": "Hundefutter",
"en": "dog food"
}LocalizedUrl
A localized URL that provides different URL values for different locales.
/^https?://[^s/$.?#].[^s]*$/Any string parameter matching this regular expression | URL for the specific locale. |
{
"en": "https://example.com/en",
"de": "https://example.com/de"
}Client logging
CreatedBy
Information regarding IDs and references that created the Payment Integration.
clientIdString | ID of the API client that created the PaymentIntegration. |
externalUserIdString | External user ID that created the PaymentIntegration. |
customer | Customer reference if created by a customer. |
anonymousIdString | Anonymous ID if created by an anonymous user. |
LastModifiedBy
Information regarding IDs and references that last modified the Payment Integration.
clientIdString | ID of the API client that last modified the PaymentIntegration. |
sessionIdString | Session ID associated with the modification of the PaymentIntegration. |
externalUserIdString | External user ID that last modified the PaymentIntegration. |
anonymousIdString | Anonymous ID if the resource was last modified by an anonymous user. |
customer | Customer reference or customer ID if the resource was last modified by a customer. |
associate | Associate (customer) reference if the resource was last modified by an associate. |
user | User reference if the resource was last modified by a platform user. |
isPlatformClientBoolean | Indicates whether the resource was last modified by a platform client. |