Request:
mutation {
createDistributionPayment(
input: {
distributionPayment: {
distributionId: "8f444de2-bfd9-4ca5-b6f4-74c4e511cebc"
amount: "100000"
}
}
) {
distributionPayment {
id
paidOn
}
}
}
Response:
{
"data": {
"createDistributionPayment": {
"distributionPayment": {
"id": "1e0b807f-4d89-4331-92b7-f7beaf25617a",
"paidOn": "2022-01-01T18:49:48.237216+00:00"
}
}
}
}
In this example, the mutation records a payment against a distribution. The ID and paid-on date of the payment is returned in the payload. Note that the distribution ID returned from the previous example of the creation of a distribution is used in the recording of the payment.