{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}
{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}
{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}
{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}
Authorizations
Authorization
string
header
required
Your opaque API key (pag_...) sent directly as the Bearer token. There is no token/JWT exchange.
Path Parameters
id
integer
required
purchase_id
Example:
151206
Response
Detail
purchaseId
integer
Purchase ID
Example:
151206
purchaseUcode
string
Example:
"pur_01a04083-beb7-71fc-b5a6-1c62d0b099a1"
orderId
integer
Order ID
Example:
129156
checkoutId
string
Example:
"chk_01a04083-beb7-71fc-b5a6-1b0091157d02"
purchaseType
string
front | order_bump | upsell_root | upsell | downsell
Example:
"front"
purchaseCreatedAt
string
When the purchase was created (UTC) — column used for the from/to filter
Example:
"2026-08-27 00:06:39"
checkoutInitializedAt
string
When the checkout was initialized (UTC)
Example:
"2026-08-26 23:59:34"
creatorName
string
Example:
"ACME STORE LLC"
affiliateId
integer | null
Null when the purchase has no affiliate.
Example:
4821
affiliateName
string
Example:
"EXAMPLE MEDIA"
affiliationCode
string | null
Code of the affiliation (affiliate + program) recorded on the purchase. The same affiliate can have different codes on different products. Null when the purchase has no affiliate.
Example:
"AFF12345"
offerCode
string
Example:
"Z5Qls71x"
offerName
string
Example:
"EXAMPLE OFFER - x12"
productName
string
Example:
"EXAMPLE PRODUCT"
productId
integer
Example:
898
productSupportEmail
string
Example:
"support@example.com"
paymentMethod
string
Example:
"credit_card"
cardBrand
string
Normalized to lowercase with spaces replaced by underscores, and amex mapped to american_express. Not a fixed enum — the value reflects the source card brand. Common values include visa, mastercard, american_express and discover.
Example:
"visa"
customerName
string
(customer PII)
Example:
"Jane Doe"
customerEmail
string
(customer PII)
Example:
"jane.doe@example.com"
customerPhone
string
(customer PII)
Example:
"(555) 000-0000"
amountTransaction
number
Example:
522
amountItemsGross
number
Example:
522
amountItemsNet
number
Example:
498
amountShippingNet
number
Example:
0
amountTaxes
number
Example:
24
amountAffiliation
number
Example:
285
amountAffiliationNet
number
Example:
270
amountRefunded
number
Example:
0
incomingAvailableAt
string
Example:
"2026-09-27"
trackingParams
object
Tracking parameters captured at checkout (UTMs, src, sck and others). Keys in camelCase (utm_source becomes utmSource), values as strings. Empty object when the checkout had none.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PagAmerican | Documentation","description":"Integrate with PagAmerican: the PagAmerican API, webhooks and partner integrations.","colors":{"primary":"#097CEA","light":"#44C2F6","dark":"#003C78"},"logo":{"light":"https://mintcdn.com/pagamerican/HV9E9Rcb82nx2qgR/logo/light.svg?fit=max\u0026auto=format\u0026n=HV9E9Rcb82nx2qgR\u0026q=85\u0026s=073393a146b1da5b6de0496d8683d8a2","dark":"https://mintcdn.com/pagamerican/HV9E9Rcb82nx2qgR/logo/dark.svg?fit=max\u0026auto=format\u0026n=HV9E9Rcb82nx2qgR\u0026q=85\u0026s=537b3475ed902d8376b3a8e9b9b6bbab"},"favicon":"https://mintcdn.com/pagamerican/JrMFCWgT_idDMAoL/favicon.svg?fit=max\u0026auto=format\u0026n=JrMFCWgT_idDMAoL\u0026q=85\u0026s=35bcf18b424bd4eb5423da530d92a857","appearance":{"default":"system","strict":false},"navbar":{"links":[{"href":"mailto:support@pagamerican.com","label":"Support"}]},"footer":{"socials":{"website":"https://pagamerican.app"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","download-spec","chatgpt","claude","perplexity","mcp","add-mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pagamerican","hasAudioNarration":false,"actualSubdomain":"pagamerican","customDomains":["docs.pagamerican.app"],"gitSource":{"type":"github","owner":"pagamericantech","repo":"docs-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aff2938c788418988bc346a","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Integrations","count":14},{"language":"default","tag":"API Reference","count":14},{"language":"default","tag":"Suppliers","count":8},{"language":"default","tag":"Webhooks","count":7},{"language":"default","tag":"Sales Funnel","count":7},{"language":"default","tag":"Trackers","count":5},{"language":"default","tag":"Webhook events","count":5},{"language":"default","tag":"AI","count":4},{"language":"default","tag":"Documentation","count":4},{"language":"default","tag":"Get started","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/purchases/purchase-detail","slug":"/api-reference/purchases/purchase-detail","pageMetadata":{"title":"Purchase detail","description":null,"deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/purchases/{id}","href":"/api-reference/purchases/purchase-detail","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Purchase detail","description":null,"deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/purchases/{id}","href":"/api-reference/purchases/purchase-detail","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["purchases"],"summary":"Purchase detail","security":["69ae0cd1-58ef-4cfc-87f0-defc1ecf3199"],"parameters":["7fd6a3e0-2a79-4908-8f4d-5748575433fd"],"responses":{"200":"8dd87639-b829-40c4-bc1c-b2f8e53fe885","400":"5313ed71-7fe7-4aaf-8989-dc78ee6263c7","401":"6d8b95f9-ac05-4425-89a4-cfdf07813b73","403":"a29078a0-9cb3-4d05-97ac-a8ba18baacf7","404":"1fe09377-db03-459a-a27d-2c5a02bace4d"},"method":"get","type":"path","servers":["df85248b-8cbf-4aec-946c-eced584e54f5","a621e722-da73-42be-b185-3555c34b6a10"],"path":"/api/v1/purchases/{id}","baseUrlOptions":["https://external-api-service.pagamerican.app","https://external-api-service.pagamerican.net"],"title":"Purchase detail","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"7fd6a3e0-2a79-4908-8f4d-5748575433fd":{"name":"id","in":"path","required":true,"description":"purchase_id","schema":{"type":"integer","example":151206,"isRequired":true,"description":"purchase_id","uniqueKey":"","typeLabel":"integer"}}},"responses":{"8dd87639-b829-40c4-bc1c-b2f8e53fe885":{"description":"Detail","content":{"application/json":{"schema":{"type":"object","properties":{"purchaseId":{"type":"integer","description":"Purchase ID","example":151206,"uniqueKey":"purchaseId","typeLabel":"integer"},"purchaseUcode":{"type":"string","example":"pur_01a04083-beb7-71fc-b5a6-1c62d0b099a1","uniqueKey":"purchaseUcode","typeLabel":"string"},"orderId":{"type":"integer","description":"Order ID","example":129156,"uniqueKey":"orderId","typeLabel":"integer"},"checkoutId":{"type":"string","example":"chk_01a04083-beb7-71fc-b5a6-1b0091157d02","uniqueKey":"checkoutId","typeLabel":"string"},"purchaseType":{"type":"string","description":"front | order_bump | upsell_root | upsell | downsell","example":"front","uniqueKey":"purchaseType","typeLabel":"string"},"purchaseCreatedAt":{"type":"string","description":"When the purchase was created (UTC) — column used for the from/to filter","example":"2026-08-27 00:06:39","uniqueKey":"purchaseCreatedAt","typeLabel":"string"},"checkoutInitializedAt":{"type":"string","description":"When the checkout was initialized (UTC)","example":"2026-08-26 23:59:34","uniqueKey":"checkoutInitializedAt","typeLabel":"string"},"creatorName":{"type":"string","example":"ACME STORE LLC","uniqueKey":"creatorName","typeLabel":"string"},"affiliateId":{"oneOf":[{"type":"integer","description":"Null when the purchase has no affiliate.","example":4821,"uniqueKey":"affiliateId.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Null when the purchase has no affiliate.","example":4821,"uniqueKey":"affiliateId.oneOf.1","typeLabel":"null"}],"uniqueKey":"affiliateId","typeLabel":"integer | null"},"affiliateName":{"type":"string","example":"EXAMPLE MEDIA","uniqueKey":"affiliateName","typeLabel":"string"},"affiliationCode":{"oneOf":[{"type":"string","description":"Code of the affiliation (affiliate + program) recorded on the purchase. The same affiliate can have different codes on different products. Null when the purchase has no affiliate.","example":"AFF12345","uniqueKey":"affiliationCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Code of the affiliation (affiliate + program) recorded on the purchase. The same affiliate can have different codes on different products. Null when the purchase has no affiliate.","example":"AFF12345","uniqueKey":"affiliationCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"affiliationCode","typeLabel":"string | null"},"offerCode":{"type":"string","example":"Z5Qls71x","uniqueKey":"offerCode","typeLabel":"string"},"offerName":{"type":"string","example":"EXAMPLE OFFER - x12","uniqueKey":"offerName","typeLabel":"string"},"productName":{"type":"string","example":"EXAMPLE PRODUCT","uniqueKey":"productName","typeLabel":"string"},"productId":{"type":"integer","example":898,"uniqueKey":"productId","typeLabel":"integer"},"productSupportEmail":{"type":"string","example":"support@example.com","uniqueKey":"productSupportEmail","typeLabel":"string"},"paymentMethod":{"type":"string","example":"credit_card","uniqueKey":"paymentMethod","typeLabel":"string"},"cardBrand":{"type":"string","description":"Normalized to lowercase with spaces replaced by underscores, and `amex` mapped to `american_express`. Not a fixed enum — the value reflects the source card brand. Common values include `visa`, `mastercard`, `american_express` and `discover`.","example":"visa","uniqueKey":"cardBrand","typeLabel":"string"},"customerName":{"type":"string","description":"(customer PII)","example":"Jane Doe","uniqueKey":"customerName","typeLabel":"string"},"customerEmail":{"type":"string","description":"(customer PII)","example":"jane.doe@example.com","uniqueKey":"customerEmail","typeLabel":"string"},"customerPhone":{"type":"string","description":"(customer PII)","example":"(555) 000-0000","uniqueKey":"customerPhone","typeLabel":"string"},"amountTransaction":{"type":"number","example":522,"uniqueKey":"amountTransaction","typeLabel":"number"},"amountItemsGross":{"type":"number","example":522,"uniqueKey":"amountItemsGross","typeLabel":"number"},"amountItemsNet":{"type":"number","example":498,"uniqueKey":"amountItemsNet","typeLabel":"number"},"amountShippingNet":{"type":"number","example":0,"uniqueKey":"amountShippingNet","typeLabel":"number"},"amountTaxes":{"type":"number","example":24,"uniqueKey":"amountTaxes","typeLabel":"number"},"amountAffiliation":{"type":"number","example":285,"uniqueKey":"amountAffiliation","typeLabel":"number"},"amountAffiliationNet":{"type":"number","example":270,"uniqueKey":"amountAffiliationNet","typeLabel":"number"},"amountRefunded":{"type":"number","example":0,"uniqueKey":"amountRefunded","typeLabel":"number"},"incomingAvailableAt":{"type":"string","example":"2026-09-27","uniqueKey":"incomingAvailableAt","typeLabel":"string"},"trackingParams":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"trackingParams.additionalProperties","typeLabel":"string"},"description":"Tracking parameters captured at checkout (UTMs, src, sck and others). Keys in camelCase (utm_source becomes utmSource), values as strings. Empty object when the checkout had none.","example":{"utmSource":"facebook","utmCampaign":"launch","src":"ig","sck":"abc123"},"uniqueKey":"trackingParams","typeLabel":"object"},"amountCreatorNet":{"type":"number","description":"Vendor net — vendor keys only","example":199.76,"uniqueKey":"amountCreatorNet","typeLabel":"number"},"amountCreatorPlatformFee":{"type":"number","description":"Vendor keys only","example":37.24,"uniqueKey":"amountCreatorPlatformFee","typeLabel":"number"},"amountCreatorTax":{"type":"number","description":"Vendor keys only","example":0,"uniqueKey":"amountCreatorTax","typeLabel":"number"},"purchaseItems":{"type":"array","items":{"type":"object","uniqueKey":"purchaseItems.items.[INDEX]","typeLabel":"object"},"description":"Line items in the purchase","uniqueKey":"purchaseItems","typeLabel":"object[]"},"coupons":{"type":"array","items":{"type":"object","uniqueKey":"coupons.items.[INDEX]","typeLabel":"object"},"description":"Applied coupons","uniqueKey":"coupons","typeLabel":"object[]"},"fees":{"type":"array","items":{"type":"object","uniqueKey":"fees.items.[INDEX]","typeLabel":"object"},"description":"Fees","uniqueKey":"fees","typeLabel":"object[]"},"reservedAvailableAt":{"type":"string","example":"2026-10-27","uniqueKey":"reservedAvailableAt","typeLabel":"string"},"reservedDays":{"type":"integer","example":60,"uniqueKey":"reservedDays","typeLabel":"integer"},"reservedAmount":{"type":"number","example":52.2,"uniqueKey":"reservedAmount","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"purchaseId":151206,"purchaseUcode":"pur_01a04083-beb7-71fc-b5a6-1c62d0b099a1","orderId":129156,"checkoutId":"chk_01a04083-beb7-71fc-b5a6-1b0091157d02","purchaseType":"front","purchaseCreatedAt":"2026-08-27 00:06:39","checkoutInitializedAt":"2026-08-26 23:59:34","creatorName":"ACME STORE LLC","affiliateId":4821,"affiliateName":"EXAMPLE MEDIA","affiliationCode":"AFF12345","offerCode":"Z5Qls71x","offerName":"EXAMPLE OFFER - x12","productName":"EXAMPLE PRODUCT","productId":898,"productSupportEmail":"support@example.com","paymentMethod":"credit_card","cardBrand":"visa","customerName":"Jane Doe","customerEmail":"jane.doe@example.com","customerPhone":"(555) 000-0000","amountTransaction":522,"amountItemsGross":522,"amountItemsNet":498,"amountShippingNet":0,"amountTaxes":24,"amountAffiliation":285,"amountAffiliationNet":270,"amountRefunded":0,"incomingAvailableAt":"2026-09-27","trackingParams":{"utmSource":"facebook","utmCampaign":"launch","src":"ig","sck":"abc123"},"amountCreatorNet":199.76,"amountCreatorPlatformFee":37.24,"amountCreatorTax":0,"purchaseItems":[{}],"coupons":[{}],"fees":[{}],"reservedAvailableAt":"2026-10-27","reservedDays":60,"reservedAmount":52.2}}},"exampleType":"generated"}},"exampleType":"generated"},"5313ed71-7fe7-4aaf-8989-dc78ee6263c7":{"description":"Invalid parameters (malformed dates, from > to)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"from must be before to","uniqueKey":"error.message","typeLabel":"string"},"correlation_id":{"type":"string","example":"a1b2c3d4-0000-0000-0000-000000000000","uniqueKey":"error.correlation_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"from must be before to","correlation_id":"a1b2c3d4-0000-0000-0000-000000000000"}}}},"exampleType":"generated"}},"exampleType":"generated"},"6d8b95f9-ac05-4425-89a4-cfdf07813b73":{"description":"Missing, invalid, or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"from must be before to","uniqueKey":"error.message","typeLabel":"string"},"correlation_id":{"type":"string","example":"a1b2c3d4-0000-0000-0000-000000000000","uniqueKey":"error.correlation_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"from must be before to","correlation_id":"a1b2c3d4-0000-0000-0000-000000000000"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a29078a0-9cb3-4d05-97ac-a8ba18baacf7":{"description":"Insufficient scope or persona not allowed for this resource","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"from must be before to","uniqueKey":"error.message","typeLabel":"string"},"correlation_id":{"type":"string","example":"a1b2c3d4-0000-0000-0000-000000000000","uniqueKey":"error.correlation_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"from must be before to","correlation_id":"a1b2c3d4-0000-0000-0000-000000000000"}}}},"exampleType":"generated"}},"exampleType":"generated"},"1fe09377-db03-459a-a27d-2c5a02bace4d":{"description":"Record not found for your tenant","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"from must be before to","uniqueKey":"error.message","typeLabel":"string"},"correlation_id":{"type":"string","example":"a1b2c3d4-0000-0000-0000-000000000000","uniqueKey":"error.correlation_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"from must be before to","correlation_id":"a1b2c3d4-0000-0000-0000-000000000000"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"69ae0cd1-58ef-4cfc-87f0-defc1ecf3199":{"apiKey":{"type":"http","scheme":"bearer","description":"Your opaque API key (`pag_...`) sent directly as the Bearer token. There is no token/JWT exchange.","scopes":[],"schemeName":"apiKey"}}},"servers":{"df85248b-8cbf-4aec-946c-eced584e54f5":{"url":"https://external-api-service.pagamerican.app","description":"Production"},"a621e722-da73-42be-b185-3555c34b6a10":{"url":"https://external-api-service.pagamerican.net","description":"Staging"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your opaque API key (`pag_...`) sent directly as the Bearer token. There is no token/JWT exchange.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your opaque API key (`pag_...`) sent directly as the Bearer token. There is no token/JWT exchange.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"pagamerican","siteName":"PagAmerican | Documentation","title":"Purchase detail - PagAmerican | Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T17:58:37.045Z","originalFileLocation":"api-reference/purchases/purchase-detail.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"PagAmerican | Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Purchase detail - PagAmerican | Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PagAmerican | Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pagamerican.mintlify.site/_mintlify/api/og/v2?division=purchases\u0026amp;title=Purchase+detail\u0026amp;theme=dd0e7b0dd6464b251f463e95\u0026amp;signature=f04756e98676a770bb67a1060027c6d3e7e0e98958a596ae0b9535d15c34ab15\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Purchase detail - PagAmerican | Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pagamerican.mintlify.site/_mintlify/api/og/v2?division=purchases\u0026amp;title=Purchase+detail\u0026amp;theme=dd0e7b0dd6464b251f463e95\u0026amp;signature=f04756e98676a770bb67a1060027c6d3e7e0e98958a596ae0b9535d15c34ab15\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pagamerican/7nACCME9wqM_W6e8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PagAmerican | Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#097CEA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/purchases/purchase-detail.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pagamerican.app/#organization\",\"name\":\"PagAmerican | Documentation\",\"url\":\"https://docs.pagamerican.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pagamerican/HV9E9Rcb82nx2qgR/logo/light.svg?fit=max\u0026auto=format\u0026n=HV9E9Rcb82nx2qgR\u0026q=85\u0026s=073393a146b1da5b6de0496d8683d8a2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pagamerican.app#website\",\"name\":\"PagAmerican | Documentation\",\"url\":\"https://docs.pagamerican.app\",\"publisher\":{\"@id\":\"https://docs.pagamerican.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail#webpage\",\"url\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail\",\"name\":\"Purchase detail\",\"dateModified\":\"2026-11-03T17:58:37.045Z\",\"isPartOf\":{\"@id\":\"https://docs.pagamerican.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"purchases\",\"item\":\"https://docs.pagamerican.app/api-reference/purchases/list-purchases\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Purchase detail\",\"item\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail#apireference\",\"headline\":\"Purchase detail\",\"name\":\"Purchase detail\",\"url\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pagamerican.app/api-reference/purchases/purchase-detail#webpage\"},\"dateModified\":\"2026-11-03T17:58:37.045Z\",\"publisher\":{\"@id\":\"https://docs.pagamerican.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pagamerican.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PagAmerican | Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PagAmerican | Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/purchases/purchase-detail.md","siteName":"PagAmerican | Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"code","groups":[{"group":"purchases","pages":[{"title":"List purchases","description":"Purchases in the window. Filtered by `purchaseCreatedAt`.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/purchases","href":"/api-reference/purchases/list-purchases"},{"title":"Purchase detail","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/purchases/{id}","href":"/api-reference/purchases/purchase-detail"}]},{"group":"orders","pages":[{"title":"List orders","description":"Orders in the window. **Vendor keys only**. Filtered by `orderCreatedAt`.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/orders","href":"/api-reference/orders/list-orders"},{"title":"Order detail","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/orders/{id}","href":"/api-reference/orders/order-detail"}]},{"group":"products","pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/products","href":"/api-reference/products/list-products"}]},{"group":"offers","pages":[{"title":"List offers","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/offers","href":"/api-reference/offers/list-offers"}]},{"group":"checkouts","pages":[{"title":"List checkouts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/checkouts","href":"/api-reference/checkouts/list-checkouts"},{"title":"Checkout detail","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/checkouts/{id}","href":"/api-reference/checkouts/checkout-detail"}]},{"group":"abandoned-carts","pages":[{"title":"List abandoned carts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/abandoned-carts","href":"/api-reference/abandoned-carts/list-abandoned-carts"}]},{"group":"refunds","pages":[{"title":"List refunds","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/refunds","href":"/api-reference/refunds/list-refunds"},{"title":"Refund detail","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/refunds/{id}","href":"/api-reference/refunds/refund-detail"}]},{"group":"chargebacks","pages":[{"title":"List chargebacks","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/chargebacks","href":"/api-reference/chargebacks/list-chargebacks"},{"title":"Get a chargeback by id","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/chargebacks/{id}","href":"/api-reference/chargebacks/get-a-chargeback-by-id"}]},{"group":"health","pages":[{"title":"Service status","deprecated":null,"version":null,"openapi":"/openapi.json get /health","href":"/api-reference/health/service-status"}]}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Sales Funnel","icon":"funnel","pages":[{"title":"Sales Funnel","href":"/sales-funnel/overview"}]},{"tab":"Suppliers","icon":"truck","pages":[{"title":"Suppliers","href":"/suppliers/overview"}]},{"tab":"AI","icon":"sparkles","pages":[{"title":"AI","href":"/ai-overview"}]}]},"basePath":"","title":"Purchase detail - PagAmerican | Documentation","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}