Credit Grants
Credit Grants
Credit Grants
Create a credit grant
client.V1.CreditGrants.New(ctx, body) (*DataIDV1CreditGrantNewResponse, error)
post/v1/credits/createGrant
Update a credit grant
client.V1.CreditGrants.Edit(ctx, body) (*DataIDV1CreditGrantEditResponse, error)
post/v1/credits/editGrant
List credit grants
client.V1.CreditGrants.List(ctx, params) (*CursorPage[IDstringBalanceV1CreditGrantListResponseBalanceCustomFieldsmapCustomerIDstringDeductionsarrayEffectiveAtTimeExpiresAtTimeGrantAmountV1CreditGrantListResponseGrantAmountNamestringPaidAmountV1CreditGrantListResponsePaidAmountPendingDeductionsarrayPriorityfloat64CreditGrantTypestringInvoiceIDstringProductsarrayReasonstringUniquenessKeystringV1CreditGrantListResponse], error)
post/v1/credits/listGrants
List credit ledger entries
client.V1.CreditGrants.ListEntries(ctx, params) (*DataarrayNextPagestringV1CreditGrantListEntriesResponse, error)
post/v1/credits/listEntries
Void a credit grant
client.V1.CreditGrants.Void(ctx, body) (*DataIDV1CreditGrantVoidResponse, error)
post/v1/credits/voidGrant
Credit Ledger Entry
CreditLedgerEntrystruct
Rollover Amount Max Amount
RolloverAmountMaxAmountstruct
Rollover Amount Max Percentage
RolloverAmountMaxPercentagestruct