{"openapi":"3.1.0","info":{"version":"1.0.0","description":"This API enables the deletion of the customer data flow between Deliverect and the DSP system.","title":"Delete Customer"},"servers":[{"url":"https://api.staging.deliverect.com"}],"security":[{"oauth2ClientCredentials":[]}],"components":{"securitySchemes":{"oauth2ClientCredentials":{"type":"oauth2","description":"Obtain an access token using the partner client ID and client secret. Send the returned token with each API request in the Authorization header as a Bearer token.","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{}}}}}},"x-readme":{"headers":[],"explorer-enabled":true,"proxy-enabled":true,"oauth-options":{"useInsecureClientAuthentication":true}},"x-readme-fauxas":true,"tags":[{"name":"Webhooks","description":"Deliverect Webhooks. Requests can be signed with HMAC-SHA256 using a pre-shared secret configured on your integration, so you can verify they came from Deliverect and weren't altered in transit (see HMAC Authentication Guide <a href=\"https://developers.deliverect.com/reference/hmac-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>)."}],"webhooks":{"https://yourwebhook.com/customer_deletion_request":{"post":{"tags":["Webhooks"],"summary":"Customer Deletion Request","description":"This webhook delivers customer deletion requests which identify the customer by their unique `customerId` allowing an asynchronous response to confirm the deletion request status via <Anchor target=\"_blank\" href=\"https://developers.deliverect.com/v3.0/update/reference/deletion-customer-data-endpoint\">Customer Deletion Status</Anchor>","operationId":"delete_customer_deletion_request","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","description":"Unique identifier of the customer."},"accountId":{"type":"string","description":"Deliverect account identifier."},"responseSLA":{"type":"integer","description":"Expected response timeframe in days."},"requestDate":{"type":"string","format":"date-time","description":"Timestamp of request creation, in the format `yyyy-MM-ddTHH:mm:ss.SSSSSSZ`."},"requestId":{"type":"string","description":"Unique Id for the deletion request.<br />The requestId is required for proper tracking and must be returned unchanged in the outcome call."}},"required":["customerId","accountId","responseSLA","requestDate","requestId"]},"examples":{"Deletion Request":{"summary":"Deletion Request","value":{"customerId":"64********************b2","accountId":"61********************a1","responseSLA":30,"requestDate":"yyyy-MM-ddTHH:mm:ss.SSSSSSZ","requestId":"123e4567-e89b-12d3-a456-426614174000"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"explorer-enabled":false,"code-samples":[{"language":"json","name":"Deletion Request","code":"{\n  \"customerId\": \"64********************b2\",\n  \"accountId\": \"61********************a1\",\n  \"responseSLA\": 30,\n  \"requestDate\": \"yyyy-MM-ddTHH:mm:ss.SSSSSSZ\",\n  \"requestId\": \"123e4567-e89b-12d3-a456-426614174000\"\n}","correspondingExample":"Deletion Request"}]},"parameters":[{"name":"Content-Type","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"Accept","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"User-Agent","in":"header","required":true,"description":"Identifies Deliverect as the sender of the webhook, in the format `Deliverect/{version}`.","schema":{"type":"string","default":"Deliverect/{version}"}},{"name":"X-Server-Authorization-HMAC-SHA256","in":"header","required":true,"description":"HMAC-SHA256 signature of the raw request body, generated with your shared secret. Recompute the signature on receipt and compare it to this value to verify the request came from Deliverect (see the <a href=\"https://developers.deliverect.com/reference/hmac-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">HMAC authentication guide</a>).","schema":{"type":"string","default":"{signature}"}}],"security":[]}}}}