Delete a Currency

You can't delete a default currency

delete
Delete a Currency by ID

https://api.moltin.com/v2/currencies/:id
Request
Response
Path Parameters
id
required
string
The ID for the Currency to delete
Headers
Authorization
required
string
The Bearer token to grant access to the API
204: No Content
cURL
JavaScript SDK
curl -X DELETE https://api.moltin.com/v2/currencies/:id \
-H "Authorization: Bearer XXXX"
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X',
client_secret: 'X'
})
const id = 'XXXX'
Moltin.Currencies.Delete(id).then(response => {
// Do something
})