Generates a payment number for a payment based on the given prefix
prefix
POST https://<hantera-hostname>/resources/actors/payment/newAuthorization: Bearer <YOUR TOKEN>Content-Type: application/json [{ "type": "create", "body": { "commands": [{ "type": "generatePaymentNumberByPrefix", "prefix": "P_STRIPE_" } ] }}]
curl -i -X POST \ https://<hantera-hostname>/resources/actors/payment/new \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "create", "body": { "commands": [{ "type": "generatePaymentNumberByPrefix", "prefix": "P_STRIPE_" } ] }}]'
Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/payment/new" `-Method POST ` `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"}-Body '[{ "type": "create", "body": { "commands": [{ "type": "generatePaymentNumberByPrefix", "prefix": "P_STRIPE_" } ] }}]'