Create a credit grant

POST {{baseUrl}}/credits/createGrant

Create a new credit grant

Request Body

{"customer_id"=>"<uuid>", "grant_amount"=>{"amount"=>"<number>", "credit_type_id"=>"<uuid>"}, "name"=>"<string>", "expires_at"=>"<dateTime>", "paid_amount"=>{"amount"=>"<number>", "credit_type_id"=>"<uuid>"}, "priority"=>"<number>", "uniqueness_key"=>"<string>", "effective_at"=>"<dateTime>", "invoice_date"=>"<dateTime>", "reason"=>"<string>", "credit_grant_type"=>"<string>", "product_ids"=>["<uuid>", "<uuid>"], "rollover_settings"=>{"expires_at"=>"<dateTime>", "priority"=>"<number>", "rollover_amount"=>{"type"=>"MAX_PERCENTAGE", "value"=>"<number>"}}, "custom_fields"=>{"occaecat_e"=>"<string>", "sit_b39"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;}}