Jump to content

Steel, Mark

Moderators
  • Posts

    480
  • Joined

  • Last visited

  • Days Won

    35

Posts posted by Steel, Mark

  1. Hi Daniela,

    Sage Business Cloud Accounting exposes public API's to provide integration ability to third party software solutions. https://developer.sage.com/accounting/reference/.

    Looking through our integrators on Sage Marketplace there is one product stating it is integrating with Prestashop and Sage Business Cloud Accountinghttps://uk-marketplace.sage.com/en-GB/home. Wether this specific integration provides the functionality you are looking for would be something you would need to determine.

    Thanks

    Mark

     

  2. Hi Rishiom,

    We are aware of an issue with generated client_id guid's which are failing to pass a regex in our auth service. It sounds as if this could be the issue for yourself.

    We're hoping to push a fix live today 06/02/2024 to resolve the issue.

    If you DM me with the client_id you're using i'll be able to check if this is the issue.

    Thanks

    Mark

  3. Hi Ray,

    Thank you for your post. You've posted in the General lobby without mention of the Sage product you are integrating with.

    If you can provide the name of the product and information relating to the error we'll be able to help/guide you better.

    Thanks

    Mark

  4. Hi,

    Thanks for your question.

    Can you confirm that the business you are posting this for is registered in Spain and provide the address of the contact. Feel free to DM me if you don't wish to make the details of the customer public.

     

    Thanks

    Mark

  5. Hi,

    Thank you for your question.
     

    The sales_prices need to include a valid product_sales_type_id as per the below example.

    The product_sales_price_type_id's can be returned via GET https://api.accounting.sage.com/v3.1/product_sales_price_types
     

    {
    	"product": {
    		"description": "22\" Monitor",
    		"sales_ledger_account_id": "e37adfa38e6311ecbccd06255bbcbb57",
    		"purchase_ledger_account_id": "e37c57448e6311ecbccd06255bbcbb57",
    		"item_code": "MON004",
    		"sales_tax_rate_id": "GB_STANDARD",
    		"usual_supplier_id": "9d4fd4da8949435fa6e11a2c40536983",
    		"purchase_tax_rate_id": "GB_STANDARD",
    		"cost_price": "45",
    		"sales_prices": [{
    			"price_name": "Sales Price",
    			"price": "80",
    			"price_includes_tax": false,
    			"product_sales_price_type_id": "ba1045fbfdbc45d5a6c591a1a4baeebd"
    		}]
    	}
    }

    Thanks

    Mark

  6. Hi Raghu,

    The transaction type = CUSTOMER_ALLOCATION. I've included an example body below where 387a3153269143aa9555ce8ad377eea2 = sales_invoice_id and 17ade05ce4674040a0742578308c20c0 = sales_credit_note_id.

    The credit value needs to be signed -.

    https://developer.sage.com/accounting/reference/payments/#tag/Contact-Allocations/operation/postContactAllocations

    {
      "contact_allocation": {
        "transaction_type_id": "CUSTOMER_ALLOCATION",
        "contact_id": "2f0a9bdd56a548ffbac9380eba27ac19",
        "date": "2023-12-07",
        "allocated_artefacts": [
          {
            "artefact_id": "387a3153269143aa9555ce8ad377eea2",
            "amount": "162.25"
          },
          {
            "artefact_id": "17ade05ce4674040a0742578308c20c0",
            "amount": "-162.25"
          }
        ]
      }
      }

    Thanks

    Mark

  7. Hi Andreea, 

    It looks as if the dates on the opening_balance transactions are later than the Accounts Start Date hence the 422 response. 

    The solution is to change the Accounting Dates in the UI or amend the initial PUT request in the collection to change the Accounts start date to 01/01/2022 and the year end date to 31/12/2023

    Thanks

    Mark

    Screenshot 2023-12-06 at 15.15.33.png

  8. The example we have in the guide(attached) uses the contact_allocations API. You are creating an allocation and do not require the contact_payment API.

    The example refers to the credit value of a payment on account but this could be any credit value(including a credit note) on the customer account. 

    You need to pass in the amount being allocated as well as the sales_invoice id and sales_credit_note id in the allocated artefacts array. The amount can only be as large as the highest amount outstanding on either artefact. For example the SI outstanding amount = 10 and the SC outstanding amount = 20 the largest amount possible to allocate is 10.

    Thanks

    Mark

    Screenshot 2023-12-06 at 11.42.06.png

×
×
  • Create New...