{"info":{"_postman_id":"cbbc6369-ef1a-45e3-bdf3-7d97ee32c5b6","name":"Pet sales API Wrapper","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"1472660","collectionId":"cbbc6369-ef1a-45e3-bdf3-7d97ee32c5b6","publishedId":"RWEiJcpA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-06-21T20:51:06.000Z"},"item":[{"name":"Invite candidate owner","id":"802af78d-06fc-4141-9ac5-f9ceb991cca0","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access-token}}","description":"<p>A valid user access_token of the seller</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"user\": {\n\t\t\"email\": \"...\"\n\t}\n}"},"url":"{{ApiWrapperEndpoint}}/pets/invite/{{seller-uuid}}/{{pet-uuid}}","description":"<h3 id=\"description\">Description</h3>\n<p>Allows a seller (breeder) to invite a candidate buyer (owner) via email.</p>\n<h3 id=\"authorization\">Authorization</h3>\n<p>Each request should have a bearer access_token in the Authorization Header.\nThis request requires a <strong>user access_token</strong> from the PolicyGate.</p>\n<h3 id=\"request-specification\">Request Specification</h3>\n<p>The request URL includes:</p>\n<ul>\n<li>{{ApiWrapperEndpoint}}: the URL of your API Wrapper Endpoint as documented on your As-Built page for the different environments.\n {{profile-type}} depends on the configuration of ProfileCconnect for your client.</li>\n<li>{{seller-uuid}}: unique identifier of the seller of the pet. The seller of the pet needs to have an active <code>IS_OWNER_OF</code>relation with the pet</li>\n<li>{{pet-uuid}}: unique identifier of the pet to be sold</li>\n</ul>\n<p>The body includes the JSON <code>user</code> object with at least the required <code>email</code> attribute. Provide the email address of the candidate that needs to be invited.</p>\n<h3 id=\"response-specification\">Response Specification</h3>\n<p>The response is a JSON object with the following elements:</p>\n<ul>\n<li>the array <code>approvalIds</code> with one single value</li>\n<li>the <code>acceptRequestToken</code></li>\n<li>the <code>rejectRequestToken</code></li>\n</ul>\n<p>Use the <code>acceptRequestToken</code> to accept the invitation via the <strong>Process request token</strong> method.\nUse the <code>rejectRequestToken</code> to reject the invitation via the <strong>Process request token</strong> method.</p>\n","urlObject":{"path":["pets","invite","{{seller-uuid}}","{{pet-uuid}}"],"host":["{{ApiWrapperEndpoint}}"],"query":[],"variable":[]}},"response":[{"id":"1528677f-b196-4df0-942b-4784568c7943","name":"Invite candidate owner","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEyc3Z4bXltdGdtaDZqZ2x0MDM1In0.eyJzdWIiOiIwN2RjMjVjZC1kMDA1LTQwMzUtOTQ2My01N2M5MzJjNjZmNzMiLCJmYW1pbHlfbmFtZSI6IkV4YW1wbGUiLCJnZW5kZXIiOiJtYWxlIiwiZ2l2ZW5fbmFtZSI6IkppbW15IiwidXBkYXRlZF9hdCI6MTUyNjU1ODE3NSwiaWF0IjoxNTI2NjI1NTg2LCJleHAiOjE1MjY2MjkxODYsImF1ZCI6InU2OTNoM3ZwYTRmYjlyNjNmOHdzNHRrNzM5aGh6eDh0IiwiaXNzIjoiaHR0cHM6Ly9hcy1leGFtcGxlOHFvenBlYmggLnN0Zy5taWFhZ3VhcmQuY29tIiwic2NwIjpbIm9wZW5pZCIsInByb2ZpbGUiXSwiY2lkIjoidTY5M2gzdnBhNGZiOXI2M2Y4d3M0dGs3MzloaHp4OHQiLCJqdGkiOiJOelZpTldReVkyTXROV00wWmkwMFltUmpMV0V5WmpJdFlqVTRZamxpTVdKbVptUmsifQ.QcEUo9WAxTeP0LnRdPBCjJ5B7bCu4DrOhzVsJ4NBbxc"},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"user\": {\n\t\t\"email\": \"jim@example.com\"\n\t}\n}"},"url":"https://api-stg.miaaguard.com/example8qozpebh/pets/invite/41e3156f-de9a-4391-bb9f-ceb7af9a805f/3a8f7e93-0a38-4b7f-a8be-3d6d22e5039f"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"approvalIds\": [\n        \"a7410089-f4a0-48a0-8670-bfe2fb7001d4\"\n    ],\n    \"acceptRequestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fc2FsZV9hY2NlcHQiLCJpYXQiOjE1MjgxMjgxMTIsImV4cCI6MTUyODMwMDkxMiwiaXNzIjoiaHR0cHM6Ly9hcGktc3RnLm1pYWFzb2x1dGlvbnMuY29tL2V4YW1wbGU4cW96cGViaC9icmVlZGVycyJ9.v4PQ0xMh4l5gWxiz11OvZuAXKn4X06tcGidrjb4Sor0\",\n    \"rejectRequestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fc2FsZV9yZWplY3QiLCJpYXQiOjE1MjgxMjgxMTIsImV4cCI6MTUyODMwMDkxMiwiaXNzIjoiaHR0cHM6Ly9hcGktc3RnLm1pYWFzb2x1dGlvbnMuY29tL2V4YW1wbGU4cW96cGViaC9icmVlZGVycyJ9.HJMXQ-P9RuE--AtOa7GkMkB-N_QKNiGvrBKe9Db8Qf0\"\n}"}],"_postman_id":"802af78d-06fc-4141-9ac5-f9ceb991cca0"},{"name":"Cancel invitation","id":"d7b97acc-1021-4a78-ab7c-a0058799e0b1","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access-token}}","description":"<p>A valid user access_token</p>\n"}],"url":"{{ApiWrapperEndpoint}}/pets/invite/{{seller-uuid}}/{{approvalId}}/{{pet-uuid}}","description":"<h3 id=\"description\">Description</h3>\n<p>Allows a seller (breeder) to cancel an invitation that was previously sent to a candidate buyer (owner).\n<strong>Note</strong> this API endpoint will not delete the email that was delivered to the candidate buyer's inbox.</p>\n<h3 id=\"authorization\">Authorization</h3>\n<p>Each request should have a bearer access_token in the Authorization Header.\nThis request requires a <strong>user access_token</strong> from the PolicyGate.</p>\n<h3 id=\"request-specification\">Request Specification</h3>\n<p>The request URL includes:</p>\n<ul>\n<li>{{ApiWrapperEndpoint}}: the URL of your API Wrapper Endpoint as documented on your As-Built page for the different environments.</li>\n<li>{{seller-uuid}}: unique identifier of the seller of the pet. The seller of the pet needs to have an active <code>IS_OWNER_OF</code>relation with the pet</li>\n<li>{{approvalId}}: unique identifier of the invitation, as returned by the <strong>Invite candidate owner</strong> method</li>\n<li>{{pet-uuid}}: unique identifier of the pet to be sold</li>\n</ul>\n<h3 id=\"response-specification\">Response Specification</h3>\n<p>The response to a successful request is <code>HTTP 204 No Conent</code>.</p>\n","urlObject":{"path":["pets","invite","{{seller-uuid}}","{{approvalId}}","{{pet-uuid}}"],"host":["{{ApiWrapperEndpoint}}"],"query":[],"variable":[]}},"response":[{"id":"3e0d3bcc-bf52-41c1-b7d5-a6ba136310c2","name":"Cancel invitation","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEyc3Z4bXltdGdtaDZqZ2x0MDM1In0.eyJzdWIiOiIwN2RjMjVjZC1kMDA1LTQwMzUtOTQ2My01N2M5MzJjNjZmNzMiLCJmYW1pbHlfbmFtZSI6IkV4YW1wbGUiLCJnZW5kZXIiOiJtYWxlIiwiZ2l2ZW5fbmFtZSI6IkppbW15IiwidXBkYXRlZF9hdCI6MTUyNjU1ODE3NSwiaWF0IjoxNTI2NjI1NTg2LCJleHAiOjE1MjY2MjkxODYsImF1ZCI6InU2OTNoM3ZwYTRmYjlyNjNmOHdzNHRrNzM5aGh6eDh0IiwiaXNzIjoiaHR0cHM6Ly9hcy1leGFtcGxlOHFvenBlYmggLnN0Zy5taWFhZ3VhcmQuY29tIiwic2NwIjpbIm9wZW5pZCIsInByb2ZpbGUiXSwiY2lkIjoidTY5M2gzdnBhNGZiOXI2M2Y4d3M0dGs3MzloaHp4OHQiLCJqdGkiOiJOelZpTldReVkyTXROV00wWmkwMFltUmpMV0V5WmpJdFlqVTRZamxpTVdKbVptUmsifQ.QcEUo9WAxTeP0LnRdPBCjJ5B7bCu4DrOhzVsJ4NBbxc"}],"url":"https://api-stg.miaaguard.com/example8qozpebh/pets/invite/41e3156f-de9a-4391-bb9f-ceb7af9a805f/a7410089-f4a0-48a0-8670-bfe2fb7001d4/3a8f7e93-0a38-4b7f-a8be-3d6d22e5039f"},"status":"No Content","code":204,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":" "}],"_postman_id":"d7b97acc-1021-4a78-ab7c-a0058799e0b1"},{"name":"Process request token","id":"c0712f99-ad73-4bf9-b4b4-1cbf6fda0423","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access-token}}","description":"<p>A valid user_access token of the candidate buyer</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"requestToken\": \"\"\n}"},"url":"{{ApiWrapperEndpoint}}/pets/processRequestToken","description":"<h3 id=\"description\">Description</h3>\n<p>Allows a candidate buyer (owner) to accept or reject its invitation.</p>\n<h3 id=\"authorization\">Authorization</h3>\n<p>Each request should have a bearer access_token in the Authorization Header.\nThis request requires a <strong>user access_token</strong> from the PolicyGate.</p>\n<h3 id=\"request-specification\">Request Specification</h3>\n<p>The request URL includes:</p>\n<ul>\n<li>{{ApiWrapperEndpoint}}: the URL of your API Wrapper Endpoint as documented on your As-Built page for the different environments.</li>\n</ul>\n<p>The body is a JSON object with one required element <code>requestToken</code>. If the <code>acceptRequestToken</code> is sent in the request, then the invitation is accepted. If the <code>rejectRequestToken</code> is sent in the request, then the invitation is rejected.</p>\n<h3 id=\"response-specification\">Response Specification</h3>\n<p>The response to a successful request is <code>HTTP 204 No Conent</code>.</p>\n","urlObject":{"path":["pets","processRequestToken"],"host":["{{ApiWrapperEndpoint}}"],"query":[],"variable":[]}},"response":[{"id":"8fdd95f1-7c3c-47b8-ba01-25605342e8cf","name":"Process request token - accepting invitation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkpzcWY1ZzVfR0s2Z3Y5Mk1HZFcxcDZUbE5RM25sTXZRM3hEeTFXZWQ0MlEifQ.eyJzdWIiOiI0MWUzMTU2Zi1kZTlhLTQzOTEtYmI5Zi1jZWI3YWY5YTgwNWYiLCJiaXJ0aGRhdGUiOiIxOTg5LTAzLTE2IiwiZmFtaWx5X25hbWUiOiJMYWJhcSIsImdlbmRlciI6Im1hbGUiLCJnaXZlbl9uYW1lIjoiVGhpZXJyeSIsImxvY2FsZSI6ImVuIiwidXBkYXRlZF9hdCI6MTUyODEyODExMiwiaWF0IjoxNTI4MTI4MzcyLCJleHAiOjE1MjgxMzE5NzIsImF1ZCI6InBoZzdxZGM3Ym1rOWdyYnplMmtlbXJ4MndoNDg0YzNkIiwiaXNzIjoiaHR0cHM6Ly9hcy1leGFtcGxlOHFvenBlYmguc3RnLm1pYWFndWFyZC5jb20iLCJzY3AiOlsib3BlbmlkIiwicHJvZmlsZSJdLCJjaWQiOiJwaGc3cWRjN2JtazlncmJ6ZTJrZW1yeDJ3aDQ4NGMzZCIsImp0aSI6Ik5EbGlNRFUwTURVdE5XSTRZaTAwWm1OaUxXRmtNV0l0TVRabE16TXhNREZsT0RCbCJ9.c0Ewl0-WOhGJGRuj0iBbieGXzydEXKSUsjfZcuaRThA"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"requestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fYWNjZXB0IiwiaWF0IjoxNTI4MTI4MTEyLCJleHAiOjE1MjgzMDA5MTIsImlzcyI6Imh0dHBzOi8vYXBpLXN0Zy5taWFhc29sdXRpb25zLmNvbS9leGFtcGxlOHFvenBlYmgvYnJlZWRlcnMifQ.LIBTrV_2aYutrz-VotFXOPYsFzVNzDf79XU0lgP9Znw\"\n}"},"url":"https://api-stg.miaaguard.com/example8qozpebh/pets/processRequestToken"},"status":"No Content","code":204,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":" "},{"id":"aaf717e1-75e9-4602-8ecf-38f1a5afe078","name":"Process request token - rejecting invitation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkpzcWY1ZzVfR0s2Z3Y5Mk1HZFcxcDZUbE5RM25sTXZRM3hEeTFXZWQ0MlEifQ.eyJzdWIiOiI0MWUzMTU2Zi1kZTlhLTQzOTEtYmI5Zi1jZWI3YWY5YTgwNWYiLCJiaXJ0aGRhdGUiOiIxOTg5LTAzLTE2IiwiZmFtaWx5X25hbWUiOiJMYWJhcSIsImdlbmRlciI6Im1hbGUiLCJnaXZlbl9uYW1lIjoiVGhpZXJyeSIsImxvY2FsZSI6ImVuIiwidXBkYXRlZF9hdCI6MTUyODEyODExMiwiaWF0IjoxNTI4MTI4MzcyLCJleHAiOjE1MjgxMzE5NzIsImF1ZCI6InBoZzdxZGM3Ym1rOWdyYnplMmtlbXJ4MndoNDg0YzNkIiwiaXNzIjoiaHR0cHM6Ly9hcy1leGFtcGxlOHFvenBlYmguc3RnLm1pYWFndWFyZC5jb20iLCJzY3AiOlsib3BlbmlkIiwicHJvZmlsZSJdLCJjaWQiOiJwaGc3cWRjN2JtazlncmJ6ZTJrZW1yeDJ3aDQ4NGMzZCIsImp0aSI6Ik5EbGlNRFUwTURVdE5XSTRZaTAwWm1OaUxXRmtNV0l0TVRabE16TXhNREZsT0RCbCJ9.c0Ewl0-WOhGJGRuj0iBbieGXzydEXKSUsjfZcuaRThA"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"requestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fcmVqZWN0IiwiaWF0IjoxNTI4MTI4MTEyLCJleHAiOjE1MjgzMDA5MTIsImlzcyI6Imh0dHBzOi8vYXBpLXN0Zy5taWFhc29sdXRpb25zLmNvbS9leGFtcGxlOHFvenBlYmgvYnJlZWRlcnMifQ.eu3-wOwQt76XBS4UnYl_REk0bzoSt2t09XejXYRBS8E\"\n}"},"url":"https://api-stg.miaaguard.com/example8qozpebh/pets/processRequestToken"},"status":"No Content","code":204,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":" "}],"_postman_id":"c0712f99-ad73-4bf9-b4b4-1cbf6fda0423"},{"name":"Register sale with approvalId","id":"87fd1211-d4d5-4ac9-a5bf-f433faa8597b","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access-token}}","description":"<p>A valid user access_token of the seller</p>\n"}],"url":"{{ApiWrapperEndpoint}}/pets/sale/{{seller-uuid}}/{{approvalId}}/{{pet-uuid}}","description":"<h3 id=\"description\">Description</h3>\n<p>Confirms the sale of a pet from the seller (breeder) to the buyer (new owner) based on an <code>approvalId</code> retrieved from the invitation step in the process.</p>\n<h3 id=\"authorization\">Authorization</h3>\n<p>Each request should have a bearer access_token in the Authorization Header.\nThis request requires a <strong>user access_token</strong> from the PolicyGate.</p>\n<h3 id=\"request-specification\">Request Specification</h3>\n<p>The request URL includes:</p>\n<ul>\n<li>{{ApiWrapperEndpoint}}: the URL of your API Wrapper Endpoint as documented on your As-Built page for the different environments.</li>\n<li>{{seller-uuid}}: unique identifier of the seller of the pet. The seller of the pet needs to have an active <code>IS_OWNER_OF</code>relation with the pet</li>\n<li>{{approvalId}}: unique identifier of the invitation, as returned by the <strong>Invite candidate owner</strong> method</li>\n<li>{{pet-uuid}}: unique identifier of the pet to be sold</li>\n</ul>\n<h3 id=\"response-specification\">Response Specification</h3>\n<p>The response to a successful request is <code>HTTP 204 No Conent</code>. The response is a JSON object with the following elements:</p>\n<ul>\n<li>the array <code>approvalIds</code> with one single value</li>\n<li>the <code>acceptRequestToken</code></li>\n<li>the <code>rejectRequestToken</code></li>\n</ul>\n<p>Use the <code>acceptRequestToken</code> to accept the sell via the <strong>Process request token</strong> method.\nUse the <code>rejectRequestToken</code> to reject the sell via the <strong>Process request token</strong> method.</p>\n","urlObject":{"path":["pets","sale","{{seller-uuid}}","{{approvalId}}","{{pet-uuid}}"],"host":["{{ApiWrapperEndpoint}}"],"query":[],"variable":[]}},"response":[{"id":"f6354288-8999-48c6-99bd-4e0da15b15a3","name":"Register sale with approvalId","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEyc3Z4bXltdGdtaDZqZ2x0MDM1In0.eyJzdWIiOiIwN2RjMjVjZC1kMDA1LTQwMzUtOTQ2My01N2M5MzJjNjZmNzMiLCJmYW1pbHlfbmFtZSI6IkV4YW1wbGUiLCJnZW5kZXIiOiJtYWxlIiwiZ2l2ZW5fbmFtZSI6IkppbW15IiwidXBkYXRlZF9hdCI6MTUyNjU1ODE3NSwiaWF0IjoxNTI2NjI1NTg2LCJleHAiOjE1MjY2MjkxODYsImF1ZCI6InU2OTNoM3ZwYTRmYjlyNjNmOHdzNHRrNzM5aGh6eDh0IiwiaXNzIjoiaHR0cHM6Ly9hcy1leGFtcGxlOHFvenBlYmggLnN0Zy5taWFhZ3VhcmQuY29tIiwic2NwIjpbIm9wZW5pZCIsInByb2ZpbGUiXSwiY2lkIjoidTY5M2gzdnBhNGZiOXI2M2Y4d3M0dGs3MzloaHp4OHQiLCJqdGkiOiJOelZpTldReVkyTXROV00wWmkwMFltUmpMV0V5WmpJdFlqVTRZamxpTVdKbVptUmsifQ.QcEUo9WAxTeP0LnRdPBCjJ5B7bCu4DrOhzVsJ4NBbxc"}],"url":"https://api-dev.miaaguard.com/example8qozpebh/pets/sale/07dc25cd-d005-4035-9463-57c932c66f73/a7410089-f4a0-48a0-8670-bfe2fb7001d4/3a8f7e93-0a38-4b7f-a8be-3d6d22e5039f"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":" {\n    \"approvalIds\": [\n        \"a7410089-f4a0-48a0-8670-bfe2fb7001d4\"\n    ],\n    \"acceptRequestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fYWNjZXB0IiwiaWF0IjoxNTI4MTI4MTEyLCJleHAiOjE1MjgzMDA5MTIsImlzcyI6Imh0dHBzOi8vYXBpLXN0Zy5taWFhc29sdXRpb25zLmNvbS9leGFtcGxlOHFvenBlYmgvYnJlZWRlcnMifQ.LIBTrV_2aYutrz-VotFXOPYsFzVNzDf79XU0lgP9Znw\",\n    \"rejectRequestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fcmVqZWN0IiwiaWF0IjoxNTI4MTI4MTEyLCJleHAiOjE1MjgzMDA5MTIsImlzcyI6Imh0dHBzOi8vYXBpLXN0Zy5taWFhc29sdXRpb25zLmNvbS9leGFtcGxlOHFvenBlYmgvYnJlZWRlcnMifQ.eu3-wOwQt76XBS4UnYl_REk0bzoSt2t09XejXYRBS8E\"\n}"}],"_postman_id":"87fd1211-d4d5-4ac9-a5bf-f433faa8597b"},{"name":"Register sale with email","id":"f6e27051-a325-440a-9fba-432119bc4a48","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access-token}}","description":"<p>A valid user access_token of the seller</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"email\": \"...\"\n  }\n}"},"url":"{{ApiWrapperEndpoint}}/pets/sale/{{seller-uuid}}/{{pet-uuid}}","description":"<h3 id=\"description\">Description</h3>\n<p>Confirms the sale of a pet from the seller (breeder) to the buyer (new owner) based on an email address. With this method you can skip the invitation step in the pet sales process.</p>\n<h3 id=\"authorization\">Authorization</h3>\n<p>Each request should have a bearer access_token in the Authorization Header.\nThis request requires a <strong>user access_token</strong> from the PolicyGate.</p>\n<h3 id=\"request-specification\">Request Specification</h3>\n<p>The request URL includes:</p>\n<ul>\n<li>{{ApiWrapperEndpoint}}: the URL of your API Wrapper Endpoint as documented on your As-Built page for the different environments.</li>\n<li>{{seller-uuid}}: unique identifier of the seller of the pet. The seller of the pet needs to have an active <code>IS_OWNER_OF</code>relation with the pet</li>\n<li>{{pet-uuid}}: unique identifier of the pet to be sold</li>\n</ul>\n<p>The body includes the JSON <code>user</code> object with at least the required <code>email</code> attribute. Provide the email address of the candidate that needs to be invited.</p>\n<h3 id=\"response-specification\">Response Specification</h3>\n<p>The response to a successful request is <code>HTTP 204 No Conent</code>. The response is a JSON object with the following elements:</p>\n<ul>\n<li>the array <code>approvalIds</code> with one single value</li>\n<li>the <code>acceptRequestToken</code></li>\n<li>the <code>rejectRequestToken</code></li>\n</ul>\n<p>Use the <code>acceptRequestToken</code> to accept the sell via the <strong>Process request token</strong> method.\nUse the <code>rejectRequestToken</code> to reject the sell via the <strong>Process request token</strong> method.</p>\n","urlObject":{"path":["pets","sale","{{seller-uuid}}","{{pet-uuid}}"],"host":["{{ApiWrapperEndpoint}}"],"query":[],"variable":[]}},"response":[{"id":"7a766575-c2b0-4503-8931-a907f153e69e","name":"Register sale with email","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEyc3Z4bXltdGdtaDZqZ2x0MDM1In0.eyJzdWIiOiIwN2RjMjVjZC1kMDA1LTQwMzUtOTQ2My01N2M5MzJjNjZmNzMiLCJmYW1pbHlfbmFtZSI6IkV4YW1wbGUiLCJnZW5kZXIiOiJtYWxlIiwiZ2l2ZW5fbmFtZSI6IkppbW15IiwidXBkYXRlZF9hdCI6MTUyNjU1ODE3NSwiaWF0IjoxNTI2NjI1NTg2LCJleHAiOjE1MjY2MjkxODYsImF1ZCI6InU2OTNoM3ZwYTRmYjlyNjNmOHdzNHRrNzM5aGh6eDh0IiwiaXNzIjoiaHR0cHM6Ly9hcy1leGFtcGxlOHFvenBlYmggLnN0Zy5taWFhZ3VhcmQuY29tIiwic2NwIjpbIm9wZW5pZCIsInByb2ZpbGUiXSwiY2lkIjoidTY5M2gzdnBhNGZiOXI2M2Y4d3M0dGs3MzloaHp4OHQiLCJqdGkiOiJOelZpTldReVkyTXROV00wWmkwMFltUmpMV0V5WmpJdFlqVTRZamxpTVdKbVptUmsifQ.QcEUo9WAxTeP0LnRdPBCjJ5B7bCu4DrOhzVsJ4NBbxc"},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"user\": {\n\t\t\"email\": \"jim@example.com\"\n\t}\n}"},"url":"https://api-dev.miaaguard.com/example8qozpebh/pets/sale/07dc25cd-d005-4035-9463-57c932c66f73/3a8f7e93-0a38-4b7f-a8be-3d6d22e5039f"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"approvalIds\": [\n        \"a7410089-f4a0-48a0-8670-bfe2fb7001d4\"\n    ],\n    \"acceptRequestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fc2FsZV9hY2NlcHQiLCJpYXQiOjE1MjgxMjgxMTIsImV4cCI6MTUyODMwMDkxMiwiaXNzIjoiaHR0cHM6Ly9hcGktc3RnLm1pYWFzb2x1dGlvbnMuY29tL2V4YW1wbGU4cW96cGViaC9icmVlZGVycyJ9.v4PQ0xMh4l5gWxiz11OvZuAXKn4X06tcGidrjb4Sor0\",\n    \"rejectRequestToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVXVpZCI6IjQxZTMxNTZmLWRlOWEtNDM5MS1iYjlmLWNlYjdhZjlhODA1ZiIsImNhcm5ldFV1aWQiOiIzYThmN2U5My0wYTM4LTRiN2YtYThiZS0zZDZkMjJlNTAzOWYiLCJ0eXBlIjoicGV0X2ludml0YXRpb25fc2FsZV9yZWplY3QiLCJpYXQiOjE1MjgxMjgxMTIsImV4cCI6MTUyODMwMDkxMiwiaXNzIjoiaHR0cHM6Ly9hcGktc3RnLm1pYWFzb2x1dGlvbnMuY29tL2V4YW1wbGU4cW96cGViaC9icmVlZGVycyJ9.HJMXQ-P9RuE--AtOa7GkMkB-N_QKNiGvrBKe9Db8Qf0\"\n}"}],"_postman_id":"f6e27051-a325-440a-9fba-432119bc4a48"},{"name":"Cancel sale","id":"f261f45e-87fb-4aa1-aa85-9c62e2daf70b","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access-token}}","description":"<p>A valid user access_token of the seller</p>\n"}],"url":"{{ApiWrapperEndpoint}}/pets/sale/{{seller-uuid}}/{{approvalId}}/{{pet-uuid}}","description":"<h3 id=\"description\">Description</h3>\n<p>Cancels the sale of a pet by the seller.</p>\n<h3 id=\"authorization\">Authorization</h3>\n<p>Each request should have a bearer access_token in the Authorization Header.\nThis request requires a <strong>user access_token</strong> from the PolicyGate.</p>\n<h3 id=\"request-specification\">Request Specification</h3>\n<p>The request URL includes:</p>\n<ul>\n<li>{{ApiWrapperEndpoint}}: the URL of your API Wrapper Endpoint as documented on your As-Built page for the different environments.</li>\n<li>{{seller-uuid}}: unique identifier of the seller of the pet. The seller of the pet needs to have an active <code>IS_OWNER_OF</code>relation with the pet</li>\n<li>{{approvalId}}: unique identifier of the invitation, as returned by the <strong>Invite candidate owner</strong> method</li>\n<li>{{pet-uuid}}: unique identifier of the pet to be sold</li>\n</ul>\n<h3 id=\"response-specification\">Response Specification</h3>\n<p>The response to a successful request is <code>HTTP 204 No Conent</code>.</p>\n","urlObject":{"path":["pets","sale","{{seller-uuid}}","{{approvalId}}","{{pet-uuid}}"],"host":["{{ApiWrapperEndpoint}}"],"query":[],"variable":[]}},"response":[{"id":"2d8112ce-dadd-4ace-b922-ae6f73987611","name":"Cancel sale - based on approvalId","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEyc3Z4bXltdGdtaDZqZ2x0MDM1In0.eyJzdWIiOiIwN2RjMjVjZC1kMDA1LTQwMzUtOTQ2My01N2M5MzJjNjZmNzMiLCJmYW1pbHlfbmFtZSI6IkV4YW1wbGUiLCJnZW5kZXIiOiJtYWxlIiwiZ2l2ZW5fbmFtZSI6IkppbW15IiwidXBkYXRlZF9hdCI6MTUyNjU1ODE3NSwiaWF0IjoxNTI2NjI1NTg2LCJleHAiOjE1MjY2MjkxODYsImF1ZCI6InU2OTNoM3ZwYTRmYjlyNjNmOHdzNHRrNzM5aGh6eDh0IiwiaXNzIjoiaHR0cHM6Ly9hcy1leGFtcGxlOHFvenBlYmggLnN0Zy5taWFhZ3VhcmQuY29tIiwic2NwIjpbIm9wZW5pZCIsInByb2ZpbGUiXSwiY2lkIjoidTY5M2gzdnBhNGZiOXI2M2Y4d3M0dGs3MzloaHp4OHQiLCJqdGkiOiJOelZpTldReVkyTXROV00wWmkwMFltUmpMV0V5WmpJdFlqVTRZamxpTVdKbVptUmsifQ.QcEUo9WAxTeP0LnRdPBCjJ5B7bCu4DrOhzVsJ4NBbxc"}],"url":"https://api-dev.miaaguard.com/example8qozpebh/pets/sale/07dc25cd-d005-4035-9463-57c932c66f73/a7410089-f4a0-48a0-8670-bfe2fb7001d4/3a8f7e93-0a38-4b7f-a8be-3d6d22e5039f"},"status":"No Content","code":204,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":" "}],"_postman_id":"f261f45e-87fb-4aa1-aa85-9c62e2daf70b"}]}