Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set batch id when creating invoice payment #30

Open
Russell-Pollari opened this issue Sep 11, 2024 · 0 comments · May be fixed by #31
Open

Cannot set batch id when creating invoice payment #30

Russell-Pollari opened this issue Sep 11, 2024 · 0 comments · May be fixed by #31

Comments

@Russell-Pollari
Copy link

When creating an invoice payment, an existing batch cannot be set. It always defaults to creating a new batch.

Though the docs mention that you can provide a batchId, it is not apparent how (or if) you should add this to the body

e.g. adding batchId does not work

    body = {
        "batchId": batch_id,
        "invoiceId": invoice.id,
        "amount": {
            "value": "10.00"
            "currency":  "CAD"
        },
    }

    trolley_client =  Configuration.gateway(public_key, private_key)
    invoice_payment = trolley_client.invoice_payment.create(body)
    # creates new batch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant