My Products
Help
Quan Pham
PARTNER

POST supplierPayment : "Error creating payment. Error: Automatic numbering cannot be performed."

by Quan Pham (Updated ‎24-10-2022 09:49 by Yıldırım VISMA )

Hi,

 

Im trying to create a SupplierPayment in a specific branch. The cashAccount is linked with the correct branch. 

Im getting this error message when trying to post with the body below. Do you have any idea why?

 

"Error creating payment. Error: Automatic numbering cannot be performed."

 

{
"currency": {
"Value": "SEK"
},
"supplier": {
"Value": "50551"
},
"type": {
"Value": "Payment"
},
"cashAccount": {
"Value": "0123"
},
"paymentMethod": {
"Value": "03"
},
"paymentAmount": {
"Value": 2135313.0
},
"paymentLines": [
{
"refNbr": {
"Value": "UNI2000075"
},
"documentType": {
"Value": "Invoice"
},
"amountPaid": {
"Value": 2135313.0
},
"operation": "Insert"
}
]
}

5 REPLIES 5
Quan Pham
PARTNER

by Quan Pham (Updated ‎25-10-2022 15:11 by Quan Pham PARTNER )

.

by Magnus Johnsen

Hi,

The issue looks like it has to do with the referenceNumber of the payment.

referenceNumber has not been specified, and the automatic numbering failed so, please have a look at your number series for APPAYMENTS:

2022-10-24 11_58_12-Number series - Brave.png

Quan Pham
PARTNER

by Quan Pham

This is how it looks in Visma.

 

The supplierinvoice i'm trying to create a payment towards is in branch 23. Could it be that automatic numbering fail because "next number" is lower than "last allocated number"? Is it possible to update "next number"?

We don't want to use manual numbering. We would like Visma to assign a referenceNumber when a payment is created, like it does if we create the payment manually in Visma.

 

QuanPham_1-1666646637038.png

 

by Magnus Johnsen

Hi,

Could you please try to create a payment in the UI to see if you get any issues with numbering when saving the payment?

 

Quan Pham
PARTNER

by Quan Pham

Hi again,

 

Yes, it is possible to create a payment in the UI without any problem.