postCredit
Post credit to a ledger.
Arguments
Input fields for posting a credit.
Possible Errors
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-5311: The credit reason with the requested code is deprecated.
- KT-CT-5312: The credit reason with the requested code does not exist.
- KT-CT-5313: An error occurred whilst posting the credit.
- KT-CT-5316: Invalid data.
- KT-CT-7899: An internal error occurred.
Allowed Viewers
Required Permissions
Can add credits to accountsQuery Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation PostCredit($input: PostCreditInput!) {
postCredit(input: $input) {
credit {
...CreditFragment
}
}
}
Variables
{
"input": PostCreditInput
}
Response
{
"data": {
"postCredit": {
"credit": Credit
}
}
}