Skip to main content

Request Headers

All Prime APIs expect some common request headers. This section lists those common headers.

AWS SigV4 based signed request headers

Header NameValue
authorizationAWS IAM Auth - Document, How to create
x-amz-dateThe date is specified with ISO8601 basic format in UTC time zone. The format is YYYYMMDD'T'HHMMSS'Z'. It is required for signature verification.
x-amz-request-idUnique request id for every request. This is used for metrics and debugging purpose.
x-amz-marketplaceTwo letter country code. ISO 3166 standard - https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
hostThis header is mandatory for signature verification. 1) If you are using the library mentioned in the next section, then the library should take care of setting it to the value of domain name present in the URL. 2) If you are not using the library, please explicity set this header to the Prime domain name.

APay based signed request headers

Header NameValue
authorizationAmazon Pay Auth - How to create
x-amz-pay-dateThe date is specified with ISO8601 basic format in UTC time zone. The format is YYYYMMDD'T'HHMMSS'Z'. It is required for signature verification.
x-amz-request-idUnique request id for every request. This is used for metrics and debugging purpose.
x-amz-marketplaceTwo letter country code. ISO 3166 standard - https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes