{"info":{"_postman_id":"6fec7a74-35e3-4c60-af0b-6f4a8ecb6d6c","name":"Ncentiva API Reference","description":"<html><head></head><body><p>Welcome to the Ncentiva API documentation. This API enables seamless integration with our platform to access various services related to account management, inventory, and order processing. Our team of specialists are always ready to answer your questions, feel free to reach out to us on <a href=\"https://mailto:support@ncentiva.com\">support@ncentiva.com</a>. Below are key details to get you started:</p>\n<h3 id=\"security\">Security</h3>\n<p>Our API uses Basic Authentication to ensure secure access. To generate your API keys, log in to the Ncentiva portal, navigate to the \"API Keys\" tab, and generate your keys there. Use the generated keys for authentication in your API requests.</p>\n<p><strong>Example:</strong></p>\n<ol>\n<li><p>Generate API Keys: Log in to the <a href=\"https://your-ncentiva-portal-url.com\">Ncentiva Portal</a>, go to the \"API Keys\" tab, and create new keys.</p>\n</li>\n<li><p>Construct Basic Auth: Combine your <code>username</code> and <code>password</code> in the format <code>username:password</code> and base64 encode this string.</p>\n</li>\n<li><p>Add Authorization Header: Include the encoded string in your request headers.</p>\n</li>\n</ol>\n<p><strong>Example Request Header:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Basic &lt;base64-encoded-credentials&gt;\n\n</code></pre><h3 id=\"api-flow\">API Flow</h3>\n<p>Our API follows an asynchronous flow to enhance performance and scalability. When you initiate an action, such as placing an order, the system processes the request in the background. You can check the status or retrieve results through subsequent API calls.</p>\n<h4 id=\"base-urls\">Base URLs</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Environment</strong></th>\n<th><strong>Base URL</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>UAT</strong></td>\n<td><a href=\"https://api-uat.ncentiva.com/\">https://api-uat.ncentiva.com/</a></td>\n</tr>\n<tr>\n<td><strong>Production</strong></td>\n<td><a href=\"https://api.ncentiva.com\">https://api.ncentiva.com</a></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"pagination\">Pagination</h4>\n<p>To manage large data sets efficiently, our API supports pagination. When requesting lists, such as inventory or order history, the response includes pagination details with a maximum of <code>2000</code> records. Use the provided parameters to navigate through pages in the .</p>\n<p><strong>Example Parameters:</strong></p>\n<ul>\n<li><p><code>page</code>: Specifies the page number.</p>\n</li>\n<li><p><code>pageSize</code>: Sets the number of items per page.</p>\n</li>\n</ul>\n<h4 id=\"rate-limiting\">Rate Limiting</h4>\n<p>To ensure fair usage and prevent abuse, our API enforces rate limits:</p>\n<ul>\n<li><p><strong>Production Environment:</strong></p>\n<ul>\n<li><p>60 requests per minute.</p>\n</li>\n<li><p>Maximum of 2 requests per second.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>UAT Environment:</strong></p>\n<ul>\n<li><p>20 requests per minute.</p>\n</li>\n<li><p>Maximum of 1 request per second.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Exceeding these limits will result in rate-limiting responses, advising you to slow down your request rate.</p>\n<h4 id=\"example-request-and-handling-rate-limits\">Example Request and Handling Rate Limits</h4>\n<p>When making API requests, ensure your application adheres to the rate limits. Handle rate-limiting responses by implementing retry logic with exponential backoff to avoid overwhelming the server.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">function makeApiRequest() {\n    // Perform API request\n    // Check for rate limit response\n    if (response.status === 429) {\n        // Implement retry logic\n        setTimeout(makeApiRequest, retryInterval);\n    } else {\n        // Handle successful response\n    }\n}\n\n</code></pre>\n<h3 id=\"dealing-with-bulk-orders\">Dealing with bulk orders</h3>\n<p>Ncentiva's API allows you to manage your orders cart directly via API. Below is a graphical reprensentation for the orders sequence:</p>\n<img src=\"https://content.pstmn.io/944e55a4-c76e-4a4d-9560-336ca71e9970/Q2FydEZsb3cuanBn\">\n\n<h4 id=\"request-body-parameters\">Request Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>giftCardTypeId</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>Identifier for the type of gift card to be purchased.</td>\n</tr>\n<tr>\n<td><code>amount</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>The monetary value of the gift card.</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>The requested quantity of this particular gift card.</td>\n</tr>\n<tr>\n<td><code>orderReference</code></td>\n<td>string</td>\n<td>No</td>\n<td>Optional reference provided by the client for tracking.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"individual-order-creation\">Individual Order Creation</h3>\n<p>This endpoint facilitates the asynchronous creation of individual orders for gift cards. Clients initiate an order by specifying the type and amount of the gift card they wish to purchase. Due to the asynchronous nature of this endpoint, clients will receive a transaction identifier in the response, which they can use to check the status of the order through a separate endpoint.</p>\n<h4 id=\"request-body-parameters-1\">Request Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>giftCardTypeId</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>Identifier for the type of gift card to be purchased.</td>\n</tr>\n<tr>\n<td><code>amount</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>The monetary value of the gift card.</td>\n</tr>\n<tr>\n<td><code>orderReference</code></td>\n<td>string</td>\n<td>No</td>\n<td>Optional reference provided by the client for tracking.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"asynchronous-operation\">Asynchronous Operation</h4>\n<p>After submitting the order, the response will include a parameter <code>name</code> that contains the transaction identifier (e.g., <code>NCT-PO-P-099623</code>). This ID should be used to check the order status via the following endpoint:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location 'https://w1xwrf4bfa.execute-api.us-east-2.amazonaws.com/uat/api/purchasers/v1/orders/{transaction_id}' \\\n--header 'Authorization: YOUR_BASIC_AUTH'\n\n</code></pre>\n<h5 id=\"order-fulfillment-sequence\">Order Fulfillment Sequence</h5>\n<img src=\"https://content.pstmn.io/6d2377ae-ff3f-4cfb-b704-aa0ab2670ad6/SW5kaXZpZHVhbE9yZGVyRmxvdzIuanBn\">\n\n<p>In the case of network timeout, or if for any reason, Ncentiva's order reference wasn't captured by your application, <strong>you can use the Get Order by customerReference endpoint to retrieve the order using your own generated unique reference</strong> (customerReference). Always make sure that you pass this parameter as a unique combination to avoid failures in the case of duplicate references.</p>\n<h4 id=\"http-error-codes\">HTTP Error codes</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Error Code</th>\n<th>Message</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>200</strong></td>\n<td>OK</td>\n<td>Successful request. The requested information has been returned in the response.</td>\n</tr>\n<tr>\n<td><strong>400</strong></td>\n<td>Bad Request</td>\n<td>The server cannot process the request due to a client error. This code is used to ensure the request is proper and to enforce proper data validation.</td>\n</tr>\n<tr>\n<td><strong>401</strong></td>\n<td>Unauthorized</td>\n<td>The request requires user authentication. The client must provide valid authentication credentials for the target resource.</td>\n</tr>\n<tr>\n<td><strong>403</strong></td>\n<td>Forbidden</td>\n<td>The server understood the request but refuses to authorize it. The client does not have the necessary permissions to access the resource.</td>\n</tr>\n<tr>\n<td><strong>404</strong></td>\n<td>Not Found</td>\n<td>The server cannot find the requested resource. This code indicates that the requested data is not found in the database.</td>\n</tr>\n<tr>\n<td><strong>500</strong></td>\n<td>Internal Server Error</td>\n<td>The server encountered an unexpected condition that prevented it from fulfilling the request.</td>\n</tr>\n<tr>\n<td><strong>502</strong></td>\n<td>Bad Gateway</td>\n<td>The server, while acting as a gateway or proxy, received an invalid response from the upstream server.</td>\n</tr>\n<tr>\n<td><strong>504</strong></td>\n<td>Gateway Timeout</td>\n<td>The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"application-error-codes-and-messages-examples\">Application error codes and messages (examples)</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Code</th>\n<th><strong>Error Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>BAD_REQUEST</strong></td>\n<td>Our site is currently on maintenance. You can resume your order after 10 minutes!</td>\n</tr>\n<tr>\n<td><strong>BAD_REQUEST</strong></td>\n<td>Gift Card Type with ID 1234 not found</td>\n</tr>\n<tr>\n<td><strong>BAD_REQUEST</strong></td>\n<td>Card value not match. CardType value should be 5.00</td>\n</tr>\n<tr>\n<td><strong>NOT_FOUND</strong></td>\n<td>Purchase Order not found</td>\n</tr>\n<tr>\n<td><strong>NOT_FOUND</strong></td>\n<td>Data not found</td>\n</tr>\n<tr>\n<td><strong>NOT_FOUND</strong></td>\n<td>Data is not available for the given order</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"api-order-statuses\">API Order Statuses</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Open</strong></td>\n<td>The initial status when the order is placed</td>\n</tr>\n<tr>\n<td><strong>Cancelled</strong></td>\n<td>Order is cancelled by Ncentiva.  <br><em>After receiving this status, you can</em> <em><strong>retry</strong></em> <em>the order, or</em> <em><strong>refund</strong></em> <em>your customer.</em></td>\n</tr>\n<tr>\n<td><strong>Completed</strong></td>\n<td>Order is completed, you can proceed to retrieve the gift card codes.</td>\n</tr>\n<tr>\n<td><strong>Processing</strong></td>\n<td>The order is in progress to be completed.</td>\n</tr>\n<tr>\n<td><strong>API Low Fund</strong></td>\n<td>The order is on hold due to low funds on the account.  <br><em>Please reach out to our team in case your account is running out of funds to decide on the next step, whether to cancel the orders or process them once funds are added.</em></td>\n</tr>\n<tr>\n<td><strong>On hold</strong></td>\n<td>The order is on hold from Ncentiva side.  <br><em>Please reach out to our team in case your account is running out of funds to decide on the next step, whether to cancel the orders or process them once funds are added.</em></td>\n</tr>\n<tr>\n<td><strong>Temporary Out Of Stock</strong></td>\n<td>The requested product is temporary out of stock and should be restocked shortly.  <br><em>After receiving this status, you can</em> <em><strong>retry</strong></em> <em>the order, or</em> <em><strong>refund</strong></em> <em>your customer.</em></td>\n</tr>\n</tbody>\n</table>\n</div><p>By following these guidelines, you can effectively utilize the Ncentiva API to integrate with our services and build robust applications.</p>\n<p>For detailed endpoint descriptions, please refer to the specific sections in this documentation.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"38333563","collectionId":"6fec7a74-35e3-4c60-af0b-6f4a8ecb6d6c","publishedId":"2sAXqqc2oo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"2665F2"},"publishDate":"2025-01-02T08:56:48.000Z"},"item":[{"name":"Get Balance - (to be deprecated)","id":"dd128d0b-1b20-438c-aa11-31a8ffab0ce5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/accounts/balances","description":"<p>Retrieve the current balance of the purchaser's account.</p>\n<p><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request to the endpoint.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the account balance details.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","accounts","balances"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"0e4f09a6-01f1-4bad-90fc-5962101b6a30","name":"Get Balance","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/accounts/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:51:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"68d85e56-0d64-4e9d-a31a-39c2dd4989b2"},{"key":"x-amz-apigw-id","value":"eSwlwEaAiYcEjbA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea948a-7d49a6760e28f6eb63a71d13;Parent=5d5bdc5ab3b96be2;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Ncentiva Documentation\",\n    \"paymentType\": \"Funds On Account\",\n    \"funds\": 989657.29\n}"}],"_postman_id":"dd128d0b-1b20-438c-aa11-31a8ffab0ce5"},{"name":"Get Balances","id":"2705fe0c-8133-4dbe-9384-5931515d2328","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/accounts/balances","urlObject":{"path":["api","purchasers","v1","accounts","balances"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"4e578f63-8ceb-4f1f-98bf-2a982bd959a0","name":"Get Balance","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/accounts/balances"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Thu, 21 Aug 2025 13:14:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"189"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"5438c4ec-26ce-4d43-a2f0-dcdfee1cd622"},{"key":"x-amz-apigw-id","value":"PqFD5GebCYcEDfQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-68a71bb2-3e1490fd5514be9a014916a4"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Ncentiva Customer Internal\",\n    \"paymentType\": \"Funds On Account\",\n    \"fundsList\": [\n        {\n            \"funds\": 611917.2,\n            \"currency\": \"USD\"\n        },\n        {\n            \"funds\": 251.5,\n            \"currency\": \"SAR\"\n        },\n        {\n            \"funds\": 14951.25,\n            \"currency\": \"AED\"\n        }\n    ]\n}"}],"_postman_id":"2705fe0c-8133-4dbe-9384-5931515d2328"},{"name":"Get Inventory","id":"4b5960a5-2895-4008-a36f-5479582b469c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/products/card-types/available","description":"<p>Retrieve available cards inventory details for a specified brand.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request with the <code>brandName</code> query parameter (e.g., <code>Adidas</code>). If the brand name is not passed in the query parameter then all the available catalog will be back.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the available card types for the specified brand.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","products","card-types","available"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"24df401b-23b1-4beb-8982-3a244fcbc16d","name":"Get Inventory","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/products/card-types/available"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:51:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"54991"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"484d1fea-3bc8-497c-b2f4-9bd0d0a29121"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"eSwo3G6riYcEZjg="},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Expires","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Pragma","value":"no-cache"},{"key":"x-amzn-Remapped-Date","value":"Wed, 18 Sep 2024 08:51:45 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 770,\n        \"name\": \"Adidas\",\n        \"description\": \"Our love for sport drives who we are and what we do. Every day. adidas has a clear mission: be the globally leading and most popular sporting goods brand. We are not just designing products for all kinds of sports. We are designing products for athletes. Athletes always strive for their personal best. Athletes find inspiration in sports no matter what they do. We help them to achieve their peak performance by making them faster, stronger, smarter and cooler. adidas gift cards can be redeemed in over 150 adidas Sport Performance, adidas Originals, or adidas Outlet stores in the US, as well as online at adidas.com.\",\n        \"redemptionInstructions\": \"Online Redemption: \\n \\nGo to Addidas.com Enter your full 19 digit card number & 4 digit PIN in the gift card field of the payment screen. Click Apply. \\n \\nIn-store Redemption: \\n \\nBring your Gift Card number and PIN to any adidas Sport Performance, adidasOriginals, or adidas Outlet store.\",\n        \"termsAndConditions\": \"adidas Gift Cards may be redeemed for merchandise on adidas.com and in adidas Sport Performance, adidas Originals, and adidas Outlet stores in the United States. They are not currently available for International use. adidas gift cards are not redeemable at miteam.com, TaylorMade, adidas Golf, y-3, Reebok or Rockport. Gift Cards cannot be used to purchase another Gift Card. Promotional offers or discounts do not apply to the purchase of Gift Cards. \\nGift Cards cannot be redeemed for cash except where required by law. A maximum of five (5) Gift Cards may be redeemed on one order. If the amount of your Gift Card(s) does NOT cover the total order amount, the remainder of the purchase balance can be paid with an accepted alternate form of payment. Your Gift Card will not expire as long as there is value remaining on the Gift Card. You can use it anytime. Any remaining value that is left on your Gift Card will be stored and available for your next purchase. We ask that you safeguard your card and treat your Gift Card as you would cash. Do not share your Gift Card Code and PIN. We are not able to replace or replenish Gift Cards that are lost, stolen or used without authorization.\",\n        \"region\": \"America\",\n        \"currency\": \"USD\",\n        \"giftCardTypes\": [\n            {\n                \"id\": 1194,\n                \"productName\": \"adidas $25\",\n                \"currency\": \"USD\",\n                \"denominationType\": \"FIXED\",\n                \"faceValue\": 25,\n                \"minValue\": 0,\n                \"maxValue\": 0,\n                \"country\": \"United States of America\",\n                \"processing\": \"REALTIME\",\n                \"edt\": 0,\n                \"brandCategory\": \"Clothing & Accessories\",\n                \"purchaseDiscount\": 1,\n                \"purchaseFee\": 0,\n                \"cardImageUrl\": \"https://d3t4dp0q5oa7fw.cloudfront.net/5cda81ac-7ca5-4f51-b78b-d0b5bfe34014\"\n            },\n            {\n                \"id\": 1195,\n                \"productName\": \"adidas $50\",\n                \"currency\": \"USD\",\n                \"denominationType\": \"FIXED\",\n                \"faceValue\": 50,\n                \"minValue\": 0,\n                \"maxValue\": 0,\n                \"country\": \"United States of America\",\n                \"processing\": \"REALTIME\",\n                \"edt\": 0,\n                \"brandCategory\": \"Clothing & Accessories\",\n                \"purchaseDiscount\": 1,\n                \"purchaseFee\": 0,\n                \"cardImageUrl\": \"https://d3t4dp0q5oa7fw.cloudfront.net/570cacaa-019f-4197-b63d-867652cdf385\"\n            },\n            {\n                \"id\": 1196,\n                \"productName\": \"adidas $100\",\n                \"currency\": \"USD\",\n                \"denominationType\": \"FIXED\",\n                \"faceValue\": 100,\n                \"minValue\": 0,\n                \"maxValue\": 0,\n                \"country\": \"United States of America\",\n                \"processing\": \"REALTIME\",\n                \"edt\": 0,\n                \"brandCategory\": \"Clothing & Accessories\",\n                \"purchaseDiscount\": 1,\n                \"purchaseFee\": 0,\n                \"cardImageUrl\": \"https://d3t4dp0q5oa7fw.cloudfront.net/c53731d1-6190-49bb-8a05-e559e5cfab9f\"\n            }\n        ]\n    },\n    {\n        \"id\": 802,\n        \"name\": \"Amazon.com\",\n        \"description\": \"Use your Amazon.com Gift Card* towards Books, Electronics, Music, and more. The Amazon.com web site is the place to find and discover almost any thing you want to buy online at a great price.\\n\",\n        \"redemptionInstructions\": \"\\\"   Apply to Account     How to Use   \\nTo redeem your gift card visit www.amazon.com/redeem. \\nIf you have questions about redeeming your gift card, please visit www.amazon.com/gc-redeem.  \\n \\nHyperlink Instructions: \\nApply to Account must link to the following URL: https://www.amazon.com/gp/css/gc/payment/view-gc-balance?claimCode= \\nHow to Use must link to the following URL: http://www.amazon.com/gc-redeem\\\"\\n\",\n        \"termsAndConditions\": \"Restrictions apply, see amazon.com/gc-legal\\n\",\n        \"region\": \"America\",\n        \"currency\": \"USD\",\n        \"giftCardTypes\": [\n            {\n                \"id\": 1163,\n                \"productName\": \"Amazon.com $1-$2000\",\n                \"currency\": \"USD\",\n                \"denominationType\": \"VARIABLE\",\n                \"faceValue\": 0,\n                \"minValue\": 1,\n                \"maxValue\": 2000,\n                \"country\": \"United States of America\",\n                \"processing\": \"REALTIME\",\n                \"edt\": 0,\n                \"brandCategory\": \"General Merchandise\",\n                \"purchaseDiscount\": 4,\n                \"purchaseFee\": 0,\n                \"cardImageUrl\": \"https://d3t4dp0q5oa7fw.cloudfront.net/41212ac3-208c-4c66-b8e3-3ebccd00549f\"\n            }\n        ]\n    }\n]"}],"_postman_id":"4b5960a5-2895-4008-a36f-5479582b469c"},{"name":"Individual Order 1-1","event":[{"listen":"test","script":{"id":"de52341d-6cf5-4ff8-8534-5d33f72595e5","exec":["pm.test(\"Extract order ID\", function () {","    var jsonData = pm.response.json();","    var orderRef = jsonData[0].name;","    pm.collectionVariables.set(\"orderRef\", orderRef);","});",""],"type":"text/javascript","packages":{}}}],"id":"1eba711e-7e17-426f-82d2-b73409beb863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"giftCardTypeId\": 1725,\n\"amount\": 5,\n\"orderReference\" : \"Customer-1779011341\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/purchasers/v1/individual-order","description":"<p>Place an individual order for a specific gift card type and amount.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a POST request with the order details in the body, including <code>giftCardTypeId</code>, <code>amount</code>, and <code>orderReference</code>.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the order details. The order ID will be extracted and stored in the collection variable <code>orderRef</code>.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","individual-order"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a3791433-5264-49de-8a6f-f5051b3c6b4c","name":"Individual Order 1-1","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"giftCardTypeId\": 1725,\n\"amount\": 5,\n\"orderReference\" : \"Customer-1779011341\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/purchasers/v1/individual-order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:52:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"470"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"c1b613d9-f54c-4ca5-9e5e-4b15f2001ecc"},{"key":"x-amz-apigw-id","value":"eSwrnHy1iYcEO5w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea94b0-1414e8363a2f7d4a490bec47;Parent=67665ba44c87f8a1;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 64898,\n        \"name\": \"NCT-PO-P-364583\",\n        \"orderReference\": \"Customer-1726649520\",\n        \"subtotal\": 5,\n        \"discounts\": 0.3,\n        \"totalAmount\": 4.7,\n        \"totalQuantity\": 1,\n        \"status\": \"OPEN\",\n        \"currency\": \"USD\",\n        \"createdAt\": \"2024-09-18 03:52:01\",\n        \"items\": [\n            {\n                \"id\": 66878,\n                \"purchaseOrderId\": 64898,\n                \"sku\": \"APPST000005USD\",\n                \"brandName\": \"Apple\",\n                \"cardType\": \"Apple $5\",\n                \"processing\": \"REALTIME\",\n                \"edt\": 0,\n                \"quantity\": 1,\n                \"amount\": 5,\n                \"purchaseFee\": 0,\n                \"purchaseDiscount\": 6,\n                \"subtotal\": 5,\n                \"discounts\": 0.3,\n                \"total\": 4.7\n            }\n        ]\n    }\n]"}],"_postman_id":"1eba711e-7e17-426f-82d2-b73409beb863"},{"name":"Get Cart Status","id":"ebfd66a3-05ed-4fd6-a6dd-e275fa2ab6da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/cart","description":"<p>Retrieve the current status of the purchaser's cart.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request to the endpoint.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the cart status details.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","cart"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"08f70549-12b4-47a3-977d-41c250ab1f87","name":"Get Cart Status","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:53:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"710"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"b61809ed-5dcc-4125-b5fd-7c00338d1856"},{"key":"x-amz-apigw-id","value":"eSw8gHpjCYcEHuA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea951c-5475b1df6c25bdf01587facd;Parent=080ae2d42fbac2b6;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 113,\n    \"creatorId\": \"26bafd7f-f5cb-432a-885a-8808264ea152\",\n    \"orderReference\": null,\n    \"purchaseSourceId\": 152,\n    \"purchaseSourceTypeId\": 2,\n    \"subtotal\": 750,\n    \"discounts\": 55,\n    \"totalAmount\": 695,\n    \"totalItems\": 60,\n    \"items\": [\n        {\n            \"id\": 24529,\n            \"sku\": \"APPST000010USD\",\n            \"brandName\": \"Apple\",\n            \"giftCardType\": \"Apple $10\",\n            \"processing\": \"REALTIME\",\n            \"edt\": 0,\n            \"currency\": \"USD\",\n            \"amount\": 10,\n            \"quantity\": 50,\n            \"purchaseFee\": 0,\n            \"purchaseDiscount\": 6,\n            \"discount\": 30,\n            \"subtotal\": 500,\n            \"total\": 470\n        },\n        {\n            \"id\": 24586,\n            \"sku\": \"ADICL000025USD\",\n            \"brandName\": \"Adidas\",\n            \"giftCardType\": \"adidas $25\",\n            \"processing\": \"REALTIME\",\n            \"edt\": 0,\n            \"currency\": \"USD\",\n            \"amount\": 25,\n            \"quantity\": 10,\n            \"purchaseFee\": 0,\n            \"purchaseDiscount\": 10,\n            \"discount\": 25,\n            \"subtotal\": 250,\n            \"total\": 225\n        }\n    ]\n}"}],"_postman_id":"ebfd66a3-05ed-4fd6-a6dd-e275fa2ab6da"},{"name":"Add Item to the Cart","id":"d0019b06-224e-418e-88af-2cbd643ad9f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"giftCardTypeId\": 1194,\r\n\"amount\": 25,\r\n\"quantity\": 10,\r\n\"orderReference\" : \"Customer 12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/purchasers/v1/cart","description":"<p>Add an item to the purchaser's cart.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a POST request with the item details in the body, including <code>giftCardTypeId</code>, <code>amount</code>, <code>quantity</code>, and <code>orderReference</code>.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will confirm the item was added to the cart.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","cart"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ced541e9-6943-4ce3-9347-82224ab35ccd","name":"Add Item to the Cart","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"giftCardTypeId\": 1194,\r\n\"amount\": 25,\r\n\"quantity\": 10,\r\n\"orderReference\" : \"Customer 12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/purchasers/v1/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:53:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"710"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"fe9766a5-1c23-4a82-8ce4-320788a7ee91"},{"key":"x-amz-apigw-id","value":"eSw65FV2iYcEt9w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea9512-4ef3ac474ff4bbb4211e7d07;Parent=0131434b15d0092f;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 113,\n    \"creatorId\": \"26bafd7f-f5cb-432a-885a-8808264ea152\",\n    \"orderReference\": null,\n    \"purchaseSourceId\": 152,\n    \"purchaseSourceTypeId\": 2,\n    \"subtotal\": 750,\n    \"discounts\": 55,\n    \"totalAmount\": 695,\n    \"totalItems\": 60,\n    \"items\": [\n        {\n            \"id\": 24529,\n            \"sku\": \"APPST000010USD\",\n            \"brandName\": \"Apple\",\n            \"giftCardType\": \"Apple $10\",\n            \"processing\": \"REALTIME\",\n            \"edt\": 0,\n            \"currency\": \"USD\",\n            \"amount\": 10,\n            \"quantity\": 50,\n            \"purchaseFee\": 0,\n            \"purchaseDiscount\": 6,\n            \"discount\": 30,\n            \"subtotal\": 500,\n            \"total\": 470\n        },\n        {\n            \"id\": 24586,\n            \"sku\": \"ADICL000025USD\",\n            \"brandName\": \"Adidas\",\n            \"giftCardType\": \"adidas $25\",\n            \"processing\": \"REALTIME\",\n            \"edt\": 0,\n            \"currency\": \"USD\",\n            \"amount\": 25,\n            \"quantity\": 10,\n            \"purchaseFee\": 0,\n            \"purchaseDiscount\": 10,\n            \"discount\": 25,\n            \"subtotal\": 250,\n            \"total\": 225\n        }\n    ]\n}"}],"_postman_id":"d0019b06-224e-418e-88af-2cbd643ad9f1"},{"name":"Update cart item","id":"a41dac4b-5fdb-4974-8a27-c27402b092cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"PUT","header":[],"url":"{{base_url}}/api/purchasers/v1/cart/item/{giftCardTypeId}/quantity/{qty}","urlObject":{"path":["api","purchasers","v1","cart","item","{giftCardTypeId}","quantity","{qty}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a41dac4b-5fdb-4974-8a27-c27402b092cf"},{"name":"Delete Item from the Cart","id":"4c5928c5-1537-4cfd-933f-aa75f148dbe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{base_url}}/api/purchasers/v1/cart/item/1194","description":"<p>Delete a specific item from the purchaser's cart.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a DELETE request with the <code>itemId</code> in the path parameter.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will confirm the item was removed from the cart.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","cart","item","1194"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"36944838-8e7d-4fc8-ab4d-cb8d3d31031e","name":"Delete Item from the Cart","originalRequest":{"method":"DELETE","header":[],"url":"{{base_url}}/api/purchasers/v1/cart/item/1194"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:55:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"710"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"246f2101-d835-4b89-9c10-c9f630cb4d16"},{"key":"x-amz-apigw-id","value":"eSxNEFtQCYcEduA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea9586-60d4ea09448974de1b321627;Parent=2fbcd8a382a28eae;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 113,\n    \"creatorId\": \"26bafd7f-f5cb-432a-885a-8808264ea152\",\n    \"orderReference\": null,\n    \"purchaseSourceId\": 152,\n    \"purchaseSourceTypeId\": 2,\n    \"subtotal\": 750,\n    \"discounts\": 55,\n    \"totalAmount\": 695,\n    \"totalItems\": 60,\n    \"items\": [\n        {\n            \"id\": 24529,\n            \"sku\": \"APPST000010USD\",\n            \"brandName\": \"Apple\",\n            \"giftCardType\": \"Apple $10\",\n            \"processing\": \"REALTIME\",\n            \"edt\": 0,\n            \"currency\": \"USD\",\n            \"amount\": 10,\n            \"quantity\": 50,\n            \"purchaseFee\": 0,\n            \"purchaseDiscount\": 6,\n            \"discount\": 30,\n            \"subtotal\": 500,\n            \"total\": 470\n        },\n        {\n            \"id\": 24586,\n            \"sku\": \"ADICL000025USD\",\n            \"brandName\": \"Adidas\",\n            \"giftCardType\": \"adidas $25\",\n            \"processing\": \"REALTIME\",\n            \"edt\": 0,\n            \"currency\": \"USD\",\n            \"amount\": 25,\n            \"quantity\": 10,\n            \"purchaseFee\": 0,\n            \"purchaseDiscount\": 10,\n            \"discount\": 25,\n            \"subtotal\": 250,\n            \"total\": 225\n        }\n    ]\n}"}],"_postman_id":"4c5928c5-1537-4cfd-933f-aa75f148dbe1"},{"name":"Place purchase order","id":"feeb0945-03dd-4b7a-bfa2-804559d64aed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"POST","header":[],"url":"{{base_url}}/api/purchasers/v1/orders","description":"<p>Place a purchase order to submit the orders in cart.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a POST request to the endpoint. The request body will be empty.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the purchase order details.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","orders"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"874b8d51-c579-4595-8bca-cfd93a1984c7","name":"Place purchase order","originalRequest":{"method":"POST","header":[],"url":"{{base_url}}/api/purchasers/v1/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:55:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"724"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"4612179a-6b5a-4347-a19f-6938ee353f40"},{"key":"x-amz-apigw-id","value":"eSxPBGcNCYcERZQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea9593-1507313f2117e8bc75718b47;Parent=0bf449333c109739;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 64899,\n        \"name\": \"NCT-PO-P-161141\",\n        \"orderReference\": null,\n        \"subtotal\": 750,\n        \"discounts\": 55,\n        \"totalAmount\": 695,\n        \"totalQuantity\": 60,\n        \"status\": \"Open\",\n        \"currency\": \"USD\",\n        \"createdAt\": \"2024-09-18 04:55:47\",\n        \"items\": [\n            {\n                \"id\": 66879,\n                \"purchaseOrderId\": 64899,\n                \"sku\": \"APPST000010USD\",\n                \"brandName\": \"Apple\",\n                \"cardType\": \"Apple $10\",\n                \"processing\": \"REALTIME\",\n                \"edt\": 0,\n                \"quantity\": 50,\n                \"amount\": 10,\n                \"purchaseFee\": 0,\n                \"purchaseDiscount\": 2,\n                \"subtotal\": 500,\n                \"discounts\": 30,\n                \"total\": 470\n            },\n            {\n                \"id\": 66880,\n                \"purchaseOrderId\": 64899,\n                \"sku\": \"ADICL000025USD\",\n                \"brandName\": \"Adidas\",\n                \"cardType\": \"adidas $25\",\n                \"processing\": \"REALTIME\",\n                \"edt\": 0,\n                \"quantity\": 10,\n                \"amount\": 25,\n                \"purchaseFee\": 0,\n                \"purchaseDiscount\": 10,\n                \"subtotal\": 250,\n                \"discounts\": 25,\n                \"total\": 225\n            }\n        ]\n    }\n]"}],"_postman_id":"feeb0945-03dd-4b7a-bfa2-804559d64aed"},{"name":"Order by ID","id":"5088e253-b455-4a3c-9eb1-76d56dbd7a37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/ORDER_REF","description":"<p>Retrieve the details of a specific order by its ID.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request with the <code>orderRef</code> in the path parameter.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the order details.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","orders","ORDER_REF"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"3312e68e-bf6b-402a-86ca-52a6d617eb4a","name":"Order by ID","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/ORDER_REF"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:56:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"473"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"33a8f36f-995a-4d88-9248-79fab8cf9538"},{"key":"x-amz-apigw-id","value":"eSxRZHLMiYcEp9A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea95a2-1500311731890ef4696c200f;Parent=358826f6bdb320c0;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 64898,\n    \"name\": \"NCT-PO-P-364583\",\n    \"orderReference\": \"Customer-1726649520\",\n    \"subtotal\": 5,\n    \"discounts\": 0.3,\n    \"totalAmount\": 4.7,\n    \"totalQuantity\": 1,\n    \"status\": \"Completed\",\n    \"currency\": \"USD\",\n    \"createdAt\": \"2024-09-18 03:52:01\",\n    \"items\": [\n        {\n            \"id\": 66878,\n            \"purchaseOrderId\": 64898,\n            \"sku\": \"APPST000005USD\",\n            \"brandName\": \"Apple\",\n            \"cardType\": \"Apple $5\",\n            \"processing\": \"REALTIME\",\n            \"edt\": 0,\n            \"quantity\": 1,\n            \"amount\": 5,\n            \"purchaseFee\": 0,\n            \"purchaseDiscount\": 2,\n            \"subtotal\": 5,\n            \"discounts\": 0.3,\n            \"total\": 4.7\n        }\n    ]\n}"}],"_postman_id":"5088e253-b455-4a3c-9eb1-76d56dbd7a37"},{"name":"Get Order by customerReference","id":"916d44eb-f166-427b-86e9-39f558d189d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/customer/{customer_reference}","description":"<p>Retrieve the details of a specific order using your own generated unique reference (<strong><code>customerReference</code></strong>).<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request with the <code>customerReference</code> that was used in the API request.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the order details.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","orders","customer","{customer_reference}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"916d44eb-f166-427b-86e9-39f558d189d8"},{"name":"Get purchase GC code by response","id":"360122e7-84f6-46fa-8073-3e75fb83bd8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/response/ORDER_REF","description":"<p>Retrieve the purchase gift card code by response order name.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request with the <code>order_name</code> in the path parameter.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the gift card code details.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","orders","response","ORDER_REF"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"cb727fc1-e71d-403a-a439-a4f063809a60","name":"Get purchase GC code by response","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/response/ORDER_REF"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:56:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"394"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"b4e94c3e-a366-41f5-a779-0aa66b7cabd9"},{"key":"x-amz-apigw-id","value":"eSxVxH5pCYcEuew="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea95be-6d5b04d57ad3cdbc236985d1;Parent=580bc57315624a28;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"purchaseOrderName\": \"NCT-PO-P-364583\",\n            \"brand\": \"Apple\",\n            \"giftCardTypeId\": 1725,\n            \"itemNo\": 1,\n            \"currency\": \"USD\",\n            \"faceValue\": 5,\n            \"cardIdentifier\": \"39e43675-1c1f-46a0-b11e-fd2039f9ceaa\",\n            \"giftCardNumber\": \"L8J9 HXY5 1234 1234\",\n            \"giftCardPin\": \"1234 30\",\n            \"barCodeNumber\": \"6258 7876 1770\",\n            \"ncentivaUrl\": \"https://djngbfz18880p.cloudfront.net/39e43675-1c1f-46a0-b11e-fd2039f9ceaa.html\"\n        }\n    ]\n}"}],"_postman_id":"360122e7-84f6-46fa-8073-3e75fb83bd8f"},{"name":"Download codes","id":"4a40ea24-97c9-4398-9ff7-0cc441f6211a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/download/NCT-PO-P-364583","description":"<p>Download the gift card codes for a specific order.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request with the <code>orderId</code> in the path parameter.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the downloadable gift card codes.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","orders","download","NCT-PO-P-364583"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"26d44dfd-e909-42e8-b50d-8d41ae8e3c6d","name":"Download codes","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/download/NCT-PO-P-364583"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Sep 2024 08:57:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1807"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"aa03fa05-5340-437e-adbb-69547095f3b0"},{"key":"x-amz-apigw-id","value":"eSxa3E80CYcEZOA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-66ea95de-1bef75f25d0dbc1d07468146;Parent=3e9234295a3613e2;Sampled=0;lineage=1:89f92c65:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"downloadLink\": \"https://ncentiva-giftcard-storage-qa.s3.us-east-2.amazonaws.com/NCT-PO-P-364583.csv?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEAcaCXVzLWVhc3QtMiJGMEQCIBzehkPw%2B5NKob98RKQFOYXFNtnymdZtxHXo%2FEr4wfNcAiAKp%2BaCCQbL4NcxXwF5NQh4GqeK7sNugeo358UHKyKHzSq9BQhAEAIaDDU1NDI1OTk2NDc4OSIMMRNNVtS0o8YUnsj9KpoF7p54%2BNWL%2Fs5eD6RIQpgN%2BPnZdoYDvZfujC6Fa9KF7fE8cFcqOFMhLpD0H7yxxCKkDVq4LLdnTQV9a%2Fgqn0O0DAGR1VU6OMLwILl5tiquoKX%2BH58Oyq21D2qBA0iRk9EVxWQLXACLIS85Cs9MB2fEtO3iE0P%2BnN8oIAGu50aEUWqUaaNg4I6iCzQVqfqp8d0bnOy08xPca3nQZielnTC1VQnawZaO5C2RIiTM%2BZKeqXBsgZzvYS99b4AQA1TfzisXzexR5jF8J6KssvlzBNV3KqRUbIif%2B7yyYZl08YRE9qSPO9o56OMaB2vxWomZhWpKsQtKvBQCd0Ao%2FqSdrIFglNX9onmtT7efcgDhvDWCVHK9F9jSYYeCgq65v10NlZ3Zk3%2BreyHjG9gUabAwau8%2F5wXYeH%2FWGvr979LFQeXPmRUKBnW7TCxOePkIB%2BdKE7N%2FZ%2B9U6W8j0vbfK9KdZQFrtUmWHAI67uE3hKQ8w8R8%2BwKEepBHOBtlSYOHsdPwf2OaiBV5VRa6jwO6z8avRcS0kzHvu%2BpH36qMW8JRhPX1WR9c44mfsAQoXt3gejuz1unHBp2dlpTtT1V6SmxExSMwzzWa8LsGfb1yUqv3xJb72qMZ%2BCyehmf74wC%2BgN3%2F5puv6bVzb92OTYDPCLnhmafhQW3ypkwi4l0R2BIcE3Q%2BHUN19oNn%2Bqe3wmozxjlBUmgnzSFUHk%2FXRtbZfnSDxu6hxYKfPZQ8egpSDfmUutP7XoFZxLU%2BWkANWwyMoCAAJq%2BeI%2FAqpgZXvWu55qdaSBJs0OilRf7bwQexhpfGp9Pdo9Z8tTde5%2F6sVOoaywoRuBaUJsohOs7xQBAvdu5NWVoIF5uTeCbQOZV%2BJ2S6eHW3171%2FH44nDaXjbE%2FDMNb%2BqbcGOrIBT7FXELgs70Gmd%2FKnrEjUKuw%2FT%2F65rzNPCh41ruxnDpW6QdaoEIKZ87ZgVqoQ%2Ff%2BQzorgWFMu%2FpI2eBFuM0%2B3kNTS%2FS2hgWT43HsIshhu42uSoAHQTPt%2BPo9ogyKeEzLJMp5v0SJz6Ii1mB3zo8FGMIT%2Bddn79u80MCmV0qLn0%2FbARPj4Ic5PJNgGEJwKMiIlHapRNnOo6csbKmn734uiNnb96UDwL2KGthoKQDS6MSx55Q%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240918T085703Z&X-Amz-SignedHeaders=host&X-Amz-Expires=259200&X-Amz-Credential=ASIAYCDDX4N234UTW7NU%2F20240918%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Signature=08d9e6f2ebb8f964b453056e4420f0b60224aa3a476fe03bf6ae38434e\"\n}"}],"_postman_id":"4a40ea24-97c9-4398-9ff7-0cc441f6211a"},{"name":"Get purchase orders by date","id":"984c1aa3-1b7b-4da0-af68-844db1a14e2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/purchasers/v1/orders/start-date/2024-09-15/end-date/2024-09-18","description":"<p>Retrieve purchase orders placed within a specified date range.<br /><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Authentication:</strong> Use basic authentication with the provided <code>username</code> and <code>password</code>.</p>\n</li>\n<li><p><strong>Request:</strong> Send a GET request with the <code>startDate</code> and <code>endDate</code> in the path parameters.</p>\n</li>\n<li><p><strong>Response:</strong> If the request is successful, the response will include the purchase orders within the specified date range.</p>\n</li>\n</ol>\n","urlObject":{"path":["api","purchasers","v1","orders","start-date","2024-09-15","end-date","2024-09-18"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"984c1aa3-1b7b-4da0-af68-844db1a14e2c"}],"event":[{"listen":"prerequest","script":{"id":"901bbaac-5691-4496-b2ce-20a30e12f084","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"e49276a2-6214-4936-808f-675147b5104a","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"ncentiva_key","value":"","type":"string"},{"key":"ncentiva_secret","value":"","type":"string"},{"key":"base_url","value":"{{base_url}}","type":"string"},{"key":"orderRef","value":"ORDER_REF","type":"string"},{"key":"endDate","value":"2024-09-18"},{"key":"startDate","value":"2024-09-15"},{"key":"cartId","value":" "}]}