Order Payment Type, and Reference # API call not working

Is there a bug in the API for setting Payment Type on orders?
Call to API to set there where working but have stopped with no change to our code.

Hello @mablower

If you wish to update the payment attributes feel free to go into this link to have an mock up on how to do this:

Now if you are trying to create an Order you can follow this link to see a guide on this matter:

Please let us know if you wish to create or update, also if this worked for you.

Regards.

We are already doing this but it has stopped working. No change to our code. It just stopped.

Hi @mablower

In this case could you please share with me the payload logs.

In order for us to see, however from our end we haven’t recieved any reports on bugs from the API.

Regards.

{
channel_id : 162558,
customer_id : 173149124,
deliver_to_id : 637280397,
delivery_method_id : 461226,
number : “SO-02562”,
line_items_attributes : [
{
sellable_id : 141961403,
price_per_unit : 0.39,
quantity : 1.00,
tax_rate : 0.08875
},
{
sellable_id : 113360914,
price_per_unit : 5.95,
quantity : 1.00,
tax_rate : 0.08875,
taxless_discount_per_unit : 0.1
}
],
total_discounts : 0.1,
payment_attributes : {
payment_type : “credit_card”,
reference_number : “3522504000010384387”
}
}

This is example of request we sending to Veeqo API. Response returns not value for Payment Attributes, Payment Type or reference number.
At one point for about two weeks this worked now if fails on all orders
pushed to veeqo through API.

I need to get this sorted out.
It appears to be an issue on Veeqo side of API or an undocumented changed in API ???

Hello @mablower

In this case I have tested this,

Please try it out this way:

{
“order”: {
channel_id : 162558,
customer_id : 173149124,
deliver_to_id : 637280397,
delivery_method_id : 461226,
number : “SO-02562”,
line_items_attributes : [
{
sellable_id : 141961403,
price_per_unit : 0.39,
quantity : 1.00,
tax_rate : 0.08875
},
{
sellable_id : 113360914,
price_per_unit : 5.95,
quantity : 1.00,
tax_rate : 0.08875,
taxless_discount_per_unit : 0.1
}
],
total_discounts : 0.1,
payment_attributes : {
payment_type : “credit_card”,
reference_number : “3522504000010384387”
}
}
}

It looks like its missing “order”, from my end the issue was resolved when I tried with this.

Please let me know if this worked for you.

Regards.

Because the order populates in general, I’m thinking that Developer just did’nt properly provide me all the json request fields. Because the order gets to Veeqo but is missing Payment Type and Reference# only.

double checking though

By payload logs are you referring to the json respose from API call?

Hi @mablower

Yes, however did you check the example post request and compared it with yours?

Emphasising on the order part?

Regards.

How do I mark this as resolved?

This was solution