SendRegning

Issue and send

Verison: 1.0 (read more)

When issuing an offer, it will be persisted and receive a number.

After issuing, the offer will be sent in the different ways requested in the json under the shipment property.

In addition to issuing and sending an offer, there are a few other side effects that could occur:

  • A new recipient could be created. However, using an existing recipient is also possible. More details on how this works are found in the descriptions below.
  • A new product could be created. Again, you can find more details on how to achieve this effect in the details below.

Shipment methods are described here.

1
POST /offer/drafts/{number}/issueSend

Example post JSON

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
    "shipment": {
        "paper": {},
        "email": [{
            "address": "adam@sendregning.no",
            "customMessage": "custom message"
        }, {
            "address": "orby@sendregning.no",
            "customMessage": "custom message"
        }],
        "sms": [{
            "mobileNumber": "47111111",
            "message": "sms text 1"
        }, {
            "mobileNumber": "47222222",
            "message": "sms text 1"
        }],
        "copy": {
            "email": [{
                "address": "copy@sendregning.no",
                "customMessage": "copy custom message"
            }, {
                "address": "copy2@sendregning.no",
                "customMessage": "copy2 custom message"
            }]
        }
    }
}

Response

HTTP/1.1 200 OK

Returns new offer number.