Delete a store product mapping
Deletes a mapping; purchases of the store product fall back to an earlier link of it, if any.
A product sold as it then sells its most recently mapped remaining store product of this provider.
Guide: Map store products
A project secret key: vh_sk_... for production, vh_sk_test_... for test. Keep it on your servers.
In: header
Path parameters
The project's id, proj_.... A secret key works only in the project it belongs to.
The id of the project's payment provider connection, pp_conf_....
The mapping's id, pp_prod_....
Examples
curl -X DELETE "https://api.voidhash.com/api/v1/projects/proj_tz4a98xxat96iws9zmbrgj3a/payment-providers/pp_conf_k2v8d4m1x7c9b3n6q0w5e2r8/products/pp_prod_q4w8e2r6t1y5u9i3o7p0a2s6" \ -H "Authorization: Bearer vh_sk_..."{ "error": { "type": "invalid_request", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "unauthenticated", "code": "invalid_api_key", "message": "This secret key is not valid." }}{ "error": { "type": "permission_denied", "code": "permission_denied", "message": "Insufficient permissions." }}{ "error": { "type": "not_found", "code": "product_mapping_not_found", "message": "This payment provider has no store product mapping pp_prod_q4w8e2r6t1y5u9i3o7p0a2s6.", "param": "mappingId" }}{ "error": { "type": "conflict", "code": "product_mapping_has_purchases", "message": "Provider product mappings with purchase history cannot be deleted" }}{ "error": { "type": "internal", "code": "internal_error", "message": "Something went wrong on our side. Try again, and contact support with the Request-Id header if it keeps failing." }}Response body
application/json
application/json
application/json
application/json
application/json
application/json
Errors
| Status | type | code | When |
|---|---|---|---|
| 404 | not_found | product_mapping_not_found | — |
| 409 | conflict | product_mapping_has_purchases | For a mapping purchases were recorded under, which cannot be deleted. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Payment provider products
Something wrong or missing on this page? Tell us by email or on Discord.